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.

Properties

  • Final configuration.

    Declaration

    Swift

    public let step: DestinationStep<VC, C>
  • Data to be provided to the configuration.

    Declaration

    Swift

    public let context: C

Methods

  • 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

Available where C == Any?

Available where C == Void