CustomPresentation

public struct CustomPresentation<DestinationType, ContentType, TabType> where DestinationType : RoutableDestinations, ContentType : ContentTypeable, TabType : TabTypeable

This model provides closures which drive a custom Destination presentation.

  • A closure which drives a custom UIKit Destination presentation.

    Important

    At the end of your custom presentation you must call completionClosure, passing a Boolean for whether the presentation or setup succeeds or fails.

    Declaration

    Swift

    public var uiKit: CustomControllerPresentationClosure<DestinationType, ContentType, TabType>?
  • A closure which drives a custom SwiftUI Destination presentation.

    Important

    At the end of your custom presentation you must call completionClosure, passing a Boolean for whether the presentation or setup succeeds or fails.

    Declaration

    Swift

    public var swiftUI: CustomViewPresentationClosure<DestinationType, ContentType, TabType>?
  • The initializer.

    Declaration

    Swift

    public init(uiKit: CustomControllerPresentationClosure<DestinationType, ContentType, TabType>? = nil, swiftUI: CustomViewPresentationClosure<DestinationType, ContentType, TabType>? = nil)

    Parameters

    uiKit

    A closure which drives a custom UIKit Destination presentation.

    swiftUI

    A closure which drives a custom SwiftUI Destination presentation.