SwiftUIHostingState

@MainActor
public final class SwiftUIHostingState<Content, PresentationConfiguration> : DestinationStateable where Content : SwiftUIHostedInterfacing, PresentationConfiguration : DestinationPresentationConfiguring

A state object for a SwiftUI View being hosted within a UIKit interface.

  • The container Destination which user interaction events are sent to.

    Declaration

    Swift

    @MainActor
    public var destination: SwiftUIContainerDestination<Content, PresentationConfiguration> { get set }
  • The initializer.

    Declaration

    Swift

    @MainActor
    public init(destination: SwiftUIContainerDestination<Content, PresentationConfiguration>)

    Parameters

    destination

    The container Destination which user interaction events are sent to.