Created
February 1, 2018 05:26
-
-
Save Otbivnoe/98f50a8c32a2acbfa4e474edb9a061e7 to your computer and use it in GitHub Desktop.
This file contains 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
final class ProfileRouter: Router<ProfileViewController> { | |
typealias Routes = Closable | |
} | |
final class ProfileViewController: UIViewController { | |
private let router: ProfileRouter.Routes | |
init(router: ProfileRouter.Routes) { | |
self.router = router | |
super.init(nibName: nil, bundle: nil) | |
} | |
func closeButtonPressed() { | |
router.close() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment