Skip to content

Instantly share code, notes, and snippets.

@Herakleis
Created August 19, 2017 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Herakleis/803ac56eed430cddbd1b5341151fbfee to your computer and use it in GitHub Desktop.
Save Herakleis/803ac56eed430cddbd1b5341151fbfee to your computer and use it in GitHub Desktop.
SceneCoordinatorType
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