Type Aliases
The following type aliases are available globally.
-
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 typealias CustomViewPresentationClosure<DestinationType: RoutableDestinations, ContentType: ContentTypeable, TabType: TabTypeable> = ( _ destinationToPresent: (any ViewDestinationable<DestinationType, ContentType, TabType>)?, _ currentDestination: (any ViewDestinationable<DestinationType, ContentType, TabType>)?, _ parentOfCurrentDestination: (any ViewDestinationable)?, _ completionClosure: ((Bool) -> Void)?) -> Void -
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 typealias CustomControllerPresentationClosure<DestinationType: RoutableDestinations, ContentType: ContentTypeable, TabType: TabTypeable> = ( _ destinationToPresent: (any ControllerDestinationable<DestinationType, ContentType, TabType>)?, _ rootController: (any ControllerDestinationInterfacing)?, _ currentDestination: (any ControllerDestinationable)?, _ parentOfCurrentDestination: (any ControllerDestinationable)?, _ completionClosure: ((Bool) -> Void)?) -> Void -
A generic closure which provides a result to an Interactor request.
This closure is generally used with Interactors conforming to
Interactable, which runs in a synchronous context. It provides both the result data and the original request object.Declaration
Swift
public typealias InteractorResponseClosure<Request> = (_ result: Result<Request.ResultData, Error>, _ request: Request) -> Void where Request : InteractorRequestConfiguring -
A closure which is called when a Destination should be removed from the Flow object managing the ecosystem, typically after it’s associated UI object is no longer being presented.
Declaration
Swift
public typealias RemoveDestinationFromFlowClosure = ((_ removalID: UUID) -> Void) -
A closure that is activated when a Destination presentation has completed.
Declaration
Swift
public typealias PresentationCompletionClosure = ((_ didComplete: Bool) -> Void) -
A closure run when a child Destination is removed from a
GroupedDestinationableobject.Declaration
Swift
public typealias GroupChildRemovedClosure = (_ destinationID: UUID) -> Void -
A closure run when the current child Destination of a
GroupedDestinationablehas changed.Declaration
Swift
public typealias GroupCurrentDestinationChangedClosure = (_ destinationID: UUID?) -> Void -
A closure to be run when a Destination is presented in a tab.
Declaration
Swift
public typealias TabBarViewDestinationPresentationClosure<DestinationType, ContentType, TabType> = (_ destination: any ViewDestinationable<DestinationType, ContentType, TabType>, _ tabViewID: UUID) -> Void where DestinationType : RoutableDestinations, ContentType : ContentTypeable, TabType : TabTypeable -
A closure to be run when the
selectedTabproperty changed.Declaration
Swift
public typealias TabBarViewSelectedTabUpdatedClosure<TabType> = (_ selectedTab: TabModel<TabType>) -> Void where TabType : TabTypeable -
A closure to be run when the
selectedTabproperty of aTabBarControllerDestinationableobject has changed.Declaration
Swift
public typealias TabBarControllerSelectedTabUpdatedClosure<TabType> = (_ selectedTab: TabModel<TabType>) -> Void where TabType : TabTypeable -
A closure used internally by Destinations to trigger the system sheet dismissal.
Declaration
Swift
public typealias SheetDismissalClosure = () -> Void -
A closure used for configuring a
UISheetPresentationControllerbefore the sheet is presented.Declaration
Swift
public typealias SheetPresentationControllerConfigurationClosure = (_ presentationController: UISheetPresentationController) -> Void
View on GitHub
Type Aliases Reference