aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/Coordinators/RootCoordinator.swift
blob: 79ca0ad42e15d05bde4b47013949449815d4d787 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//
//  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