Destination
public struct Destination<VC, C> where VC : UIViewController
Destination
instance represents both final screen configuration and the data to provide. It is useful when
there is a need to wrap both values into a single DTO value.
-
Final configuration.
Declaration
Swift
public let step: DestinationStep<VC, C>
-
Data to be provided to the configuration.
Declaration
Swift
public let context: C
-
Constructor
Declaration
Swift
public init(to step: DestinationStep<VC, C>, with context: C)
Parameters
step
DestinationStep
instance containing the navigation configuration.context
Context
instance to be provided to the configuration. -
Transforms into generic representation without information about types.
Declaration
Swift
public func unwrapped() -> AnyDestination
-
Constructor
Declaration
Swift
init(to step: DestinationStep<VC, C>)
Parameters
step
DestinationStep
instance containing the navigation configuration.
-
Constructor
Declaration
Swift
init(to step: DestinationStep<VC, C>)
Parameters
step
DestinationStep
instance containing the navigation configuration.