-
Notifications
You must be signed in to change notification settings - Fork 24
Navigator_Datasource
ohitsdaniel edited this page Feb 10, 2021
·
10 revisions
Observable Object exposing routing path changes
class Datasource: ObservableObject
ObservableObject
init(path: [IdentifiedScreen], screenID: @escaping () -> ScreenID = ScreenID.init)
Initialise a data source given a root screen.
convenience init<S: Screen>(root: S, screenID: @escaping () -> ScreenID = ScreenID.init)
- root: The application's root screen
- screenID: Closure used to initialise
ScreenID
s for new routing path elements
Initialise a data source given a root screen.
convenience init(root: AnyScreen, screenID: @escaping () -> ScreenID = ScreenID.init)
- root: The application's root screen
- screenID: Closure used to initialise
ScreenID
s for new routing path elements
Initialise a data source given a routing path.
convenience init(path: [AnyScreen], screenID: @escaping () -> ScreenID = ScreenID.init)
- path: The routing path built on Root view appear
- screenID: Closure used to initialise
ScreenID
s for new routing path elements
var path: [IdentifiedScreen]
let screenID: () -> ScreenID
func go(to successor: AnyScreen, on id: ScreenID)
func go(to newPath: [AnyScreen], on id: ScreenID)
func goBack(to predecessor: AnyScreen)
func replace(path: [AnyScreen])
func dismiss(id: ScreenID)
func dismissSuccessor(of id: ScreenID) -> Void
func didAppear(id: ScreenID)
Generated at 2021-04-29T07:59:04+0000 using swift-doc 1.0.0-beta.6.
Types
- AnyPathBuilder
- AnyScreen
- Deeplink
- DeeplinkComponent
- DeeplinkComponent.Argument
- DeeplinkHandler
- DeeplinkParser
- EitherAB
- EitherABC
- EitherABCD
- EitherABCDE
- EitherABCDEF
- EitherABCDEFG
- EitherABCDEFGH
- EitherABCDEFGHI
- EitherABCDEFGHIJ
- IdentifiedScreen
- NavigationNode
- NavigationTreeBuilder
- Navigator
- Navigator.Datasource
- Navigator.DidAppearInvocation
- Navigator.DismissInvocation
- Navigator.GoBackToInvocation
- Navigator.GoToInvocation
- Navigator.GoToPathInvocation
- Navigator.NavigationIdentifier
- Navigator.ReplaceContentInvocation
- Navigator.ReplacePathInvocation
- Navigator.ReplaceScreenInvocation
- NavigatorKey
- OnDismissView
- PathBuilders
- PathBuilders.EmptyBuilder
- PathBuilders.WildcardView
- PathComponentUpdate
- PathUpdate
- Root
- ScreenPresentationStyle
- TreatSheetDismissAsAppearInPresenterKey
- _PathBuilder