-
Notifications
You must be signed in to change notification settings - Fork 25
Navigator_GoToInvocation
ohitsdaniel edited this page Apr 29, 2021
·
2 revisions
Testing helper
struct GoToInvocation: Hashable
var invocations = [Navigator.GoToInvocation]()
let expectectedInvocations = [
Navigator.GoToInvocation(screen: testScreen.eraseToAnyScreen(), on: .screen(parent.eraseToAnyScreen()))
]
let navigator = Navigator.mock(
path: { self.path },
goTo: { screen, id in
invocations.append(.init(screen: screen, on: id))
}
)
navigator.go(to: testScreen, on: parent) // invoke code that invokes go(to:, on id:)
XCTAssertEqual(expectectedInvocations, invocations)
Hashable
let screen: AnyScreen
let on: NavigationIdentifier
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