-
Notifications
You must be signed in to change notification settings - Fork 25
Navigator_ReplaceScreenInvocation
ohitsdaniel edited this page Apr 29, 2021
·
2 revisions
Testing helper
struct ReplaceScreenInvocation: Hashable
var invocations = [Navigator.ReplaceScreenInvocation]()
let expectectedInvocations = [
Navigator.ReplaceScreenInvocation(
oldContent: oldContent.eraseToAnyScreen(),
newContent: expectedContent.eraseToAnyScreen()
)
]
let sut = Navigator.mock(
path: { self.path },
didAppear: { id in
invocations.append(.init(id: id))
}
)
sut.replace(screen: oldContent, with: expectedContent) // invoke code that invokes dismissSuccessor(of:)
XCTAssertEqual(expectectedInvocations, invocations)
Hashable
let oldContent: AnyScreen
let newContent: AnyScreen
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