SplitViewControllerDestination
@MainActor
public final class SplitViewControllerDestination<UserInteractionType, DestinationType, ContentType, TabType, InteractorType> : SplitViewControllerDestinationable where UserInteractionType : UserInteractionTypeable, DestinationType : RoutableDestinations, ContentType : ContentTypeable, TabType : TabTypeable, InteractorType : InteractorTypeable
A Destination which represents a UIKit UISplitViewController.
This is a generic Destination that can be used to represent most UISplitViewControllers in a UIKit-based app.
-
A type of
AppDestinationConfigurationswhich handles Destination presentation configurations.Declaration
Swift
public typealias DestinationConfigurations = AppDestinationConfigurations<UserInteractionType, DestinationType, ContentType, TabType> -
A type of
AppDestinationConfigurationswhich handles system navigation events.Declaration
Swift
public typealias NavigationConfigurations = AppDestinationConfigurations<SystemNavigationType, DestinationType, ContentType, TabType> -
Declaration
Swift
public typealias InteractorType = InteractorType -
Declaration
Swift
public typealias ControllerType = SplitViewController<UserInteractionType, DestinationType, ContentType, TabType, InteractorType> -
Declaration
Swift
public typealias PresentationType = DestinationPresentation<DestinationType, ContentType, TabType>.PresentationType -
Declaration
Swift
@MainActor public let id: UUID -
Declaration
Swift
@MainActor public let type: DestinationType -
Declaration
Swift
@MainActor public var controller: ControllerType? -
Declaration
Swift
@MainActor public var internalState: DestinationInternalState<UserInteractionType, DestinationType, ContentType, TabType, InteractorType> -
Declaration
Swift
@MainActor public var groupInternalState: GroupDestinationInternalState<DestinationType, ContentType, TabType> -
Declaration
Swift
@MainActor public var destinationIDsForColumns: [UISplitViewController.Column : UUID] -
init(type:destinationsForColumns: destinationConfigurations: navigationConfigurations: parentDestinationID: ) The initializer.
Declaration
Swift
@MainActor public init(type: DestinationType, destinationsForColumns: [UISplitViewController.Column : any ControllerDestinationable<DestinationType, ContentType, TabType>], destinationConfigurations: DestinationConfigurations? = nil, navigationConfigurations: NavigationConfigurations? = nil, parentDestinationID: UUID? = nil)Parameters
typeThe type of Destination.
destinationsForColumnsA dictionary of
UIViewController-based Destination objects, whose associated keys are theUISplitViewController.Columncolumn type should be displayed in.destinationConfigurationsThe Destination presentation configurations associated with this Destination.
navigationConfigurationsThe system navigation events associated with this Destination.
parentDestinationIDThe identifier of the parent Destination.
-
Declaration
Swift
@MainActor public func prepareForPresentation()
View on GitHub