Destination
@MainActor
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
@MainActor public let step: DestinationStep<VC, C> -
Data to be provided to the configuration.
Declaration
Swift
@MainActor public let context: C
-
Constructor
Declaration
Swift
@MainActor public init(to step: DestinationStep<VC, C>, with context: C)Parameters
stepDestinationStepinstance containing the navigation configuration.contextContextinstance to be provided to the configuration. -
Transforms into generic representation without information about types.
Declaration
Swift
@MainActor public func unwrapped() -> AnyDestination
-
Constructor
Declaration
Swift
@MainActor init(to step: DestinationStep<VC, C>)Parameters
stepDestinationStepinstance containing the navigation configuration.
-
Constructor
Declaration
Swift
@MainActor init(to step: DestinationStep<VC, C>)Parameters
stepDestinationStepinstance containing the navigation configuration.