-
Notifications
You must be signed in to change notification settings - Fork 25
DeeplinkParser
DeeplinkParser
s parse navigation paths from Deeplink
s.
public struct DeeplinkParser
DeeplinkParser
s are wrapper structs around a pure (Deeplink) -> [AnyScreen]?
function and support composition.
If a deeplink parser handles the input Deeplink
, it returns a navigation path
in the form of an AnyScreen
array.
If the deeplink parser is not responsible for parsing the deeplink, it returns nil.
public init(parse: @escaping (Deeplink) -> [AnyScreen]?)
Empty deeplink parses, not parsing any deeplink
static let empty
Can be used as a stub value
Parses a Deeplink to a navigation path
public func parse(_ deeplink: Deeplink) -> [AnyScreen]?
If the DeepLinkParser is responsible for the passed deeplink, it returns the built navigation path. Else nil.
Any of the listed deeplink parsers might take care of parsing the deeplink
static func anyOf(
_ parsers: [DeeplinkParser]
) -> DeeplinkParser
Any of the listed deeplink parsers might take care of parsing the deeplink
static func anyOf(
_ parsers: DeeplinkParser...
) -> DeeplinkParser
Allows you to prepend a navigation path to the feature's entrypoint, given the underlying parses succeeds in parsing the deeplink
static func prepending(
path pathToEntrypoint: [AnyScreen],
to parser: DeeplinkParser
) -> DeeplinkParser
In bigger, modularly designed applications, features often have entrypoints. This Deeplink Parses allows you to navigate to the feature's entrypoint before the performing the navigation defined in the deeplink.
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