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
// MARK: - Protocol for Root Changing | |
protocol RootChanging { | |
func changeRoot(to viewController: UIViewController, in navigationController: UINavigationController) | |
} | |
// MARK: - Concrete Root Changer | |
class AppRootChanger: RootChanging { | |
func changeRoot(to viewController: UIViewController, in navigationController: UINavigationController) { | |
let direction: CATransitionSubtype = .fromRight |