SwiftUIHostingState
@MainActor
public final class SwiftUIHostingState<Content, UserInteractionType, DestinationType, ContentType, TabType, InteractorType> : DestinationStateable where Content : SwiftUIHostedInterfacing, UserInteractionType : UserInteractionTypeable, DestinationType : RoutableDestinations, ContentType : ContentTypeable, TabType : TabTypeable, InteractorType : InteractorTypeable
A state object for a SwiftUI View being hosted within a UIKit interface.
-
Declaration
Swift
public typealias Destination = SwiftUIContainerDestination<Content, UserInteractionType, DestinationType, ContentType, TabType, InteractorType> -
The container Destination which user interaction events are sent to.
Declaration
Swift
@MainActor public var destination: Destination { get set } -
The initializer.
Declaration
Swift
@MainActor public init(destination: Destination)Parameters
destinationThe container Destination which user interaction events are sent to.
View on GitHub