Created
March 6, 2020 15:37
-
-
Save caldofran/11bf959eeca7940aa85f239b3c793721 to your computer and use it in GitHub Desktop.
Screen extensions
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
extension Screen { | |
static func offer(id: String) -> Self { | |
return .init() { OfferViewController(id: id) } | |
} | |
} | |
extension Screen { | |
static func job(id: String) -> Self { | |
return .init() { JobViewController(id: id) } | |
} | |
} | |
extension Screen { | |
static func document(url: URL) -> Self { | |
return .init() { DocumentViewController(url: url) } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment