CustomPresentation
public struct CustomPresentation<PresentationConfiguration> where PresentationConfiguration : DestinationPresentationConfiguring
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 callcompletionClosure
, passing a Boolean for whether the presentation or setup succeeds or fails.Declaration
Swift
public var uiKit: CustomControllerPresentationClosure<PresentationConfiguration>?
-
A closure which drives a custom SwiftUI Destination presentation.
Important
At the end of your custom presentation you must callcompletionClosure
, passing a Boolean for whether the presentation or setup succeeds or fails.Declaration
Swift
public var swiftUI: CustomViewPresentationClosure<PresentationConfiguration>?
-
The initializer.
Declaration
Swift
public init(uiKit: CustomControllerPresentationClosure<PresentationConfiguration>? = nil, swiftUI: CustomViewPresentationClosure<PresentationConfiguration>? = nil)
Parameters
uiKit
A closure which drives a custom UIKit Destination presentation.
swiftUI
A closure which drives a custom SwiftUI Destination presentation.