16 lines
517 B
Swift
16 lines
517 B
Swift
//
|
|
// Copyright © 2018 WireGuard LLC. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import UIKit
|
|
|
|
public protocol RootViewControllerProvider: class {
|
|
// The coordinators 'rootViewController'. It helps to think of this as the view
|
|
// controller that can be used to dismiss the coordinator from the view hierarchy.
|
|
var rootViewController: UIViewController { get }
|
|
}
|
|
|
|
/// A Coordinator type that provides a root UIViewController
|
|
public typealias RootViewCoordinator = Coordinator & RootViewControllerProvider
|