-
Notifications
You must be signed in to change notification settings - Fork 24
Navigator_Datasource
ohitsdaniel edited this page Apr 29, 2021
·
10 revisions
Observable Object exposing navigation 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 navigation 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 navigation path elements
Initialise a data source given a navigation path.
convenience init(
path: [AnyScreen],
screenID: @escaping () -> ScreenID = ScreenID.init
)
- path: The navigation path built on Root view appear
- screenID: Closure used to initialise
ScreenID
s for new navigation path elements
@Published public var path: PathUpdate
func go(to successor: AnyScreen, on id: ScreenID)
func go(to newPath: [AnyScreen], on id: ScreenID)
func goBack(to id: ScreenID)
func replace(path: [AnyScreen])
func dismiss(id: ScreenID)
func dismissSuccessor(of id: ScreenID)
func replaceContent(of id: ScreenID, with newContent: AnyScreen)
func replace(screen: AnyScreen, with newContent: AnyScreen)
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