Created
June 19, 2020 09:17
-
-
Save atimca/988665d8f633fa2e3797ab8a6e0e96f2 to your computer and use it in GitHub Desktop.
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
enum AppEvent { | |
case newUserWasLoaded(User) | |
case newsEvents(NewsEvent) | |
var newsEvent: NewsEvent? { | |
guard case .newsEvents(let event) = self else { return nil } | |
return event | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment