SplitViewControllerDestination
@MainActor
public final class SplitViewControllerDestination<EventType, DestinationType, ContentType, TabType, InteractorType> : SplitViewControllerDestinationable where EventType : EventTypeable, 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<EventType, 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<EventType, 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<EventType, DestinationType, ContentType, TabType, InteractorType> -
Declaration
Swift
@MainActor public var groupInternalState: GroupDestinationInternalState<DestinationType, ContentType, TabType> -
Declaration
Swift
@MainActor public var destinationIDsForColumns: [UISplitViewController.Column : UUID] -
Declaration
Swift
@MainActor public var stateModel: (any StateModeling<SplitViewControllerDestination<EventType, DestinationType, ContentType, TabType, InteractorType>>)? -
init(type:destinationsForColumns: destinationConfigurations: navigationConfigurations: parentDestinationID: state: ) 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, state: (any StateModeling<SplitViewControllerDestination<EventType, DestinationType, ContentType, TabType, InteractorType>>)? = 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.
View on GitHub