Skip to content

Instantly share code, notes, and snippets.

@hlung
Last active May 7, 2019 10:18
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 hlung/2486edea179ee5be6fd90d8686c358f2 to your computer and use it in GitHub Desktop.
Save hlung/2486edea179ee5be6fd90d8686c358f2 to your computer and use it in GitHub Desktop.
import Foundation
import UIKit
/// A model representing a navigation destination.
indirect enum Navigation {
case tab(type: TabType)
case post(id: String, partialPost: PartialPost?, fetcher: FeedFetcher?)
case feed(parameter: FeedParameter)
case safari(url: URL)
case applicationOpen(url: URL)
case fanClub(input: FanClubViewModel.Input)
case fanClubBio(fanClub: FanClub)
case allFanClubsList(navigatedType: AllFanClubNavigatedType)
case followingFanClubsList
case search
case share(url: URL, sourceView: UIView?)
case login(navigationAfterLogin: Navigation?)
case logout
case errorAlert(error: Error)
case updateApp
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment