Created
August 19, 2017 15:57
-
-
Save Herakleis/803ac56eed430cddbd1b5341151fbfee to your computer and use it in GitHub Desktop.
SceneCoordinatorType
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import RxSwift | |
protocol SceneCoordinatorType { | |
init(window: UIWindow) | |
var currentViewController: UIViewController { get } | |
@discardableResult | |
func transition(to scene: Scene, type: SceneTransitionType) -> Observable<Void> | |
// pop scene from navigation stack or dismiss current modal | |
@discardableResult | |
func pop(animated: Bool) -> Observable<Void> | |
@discardableResult | |
func popToRoot(animated: Bool) -> Observable<Void> | |
@discardableResult | |
func popToVC(_ viewController: UIViewController, animated: Bool) -> Observable<Void> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment