AirshipEmbeddedView
@MainActor
public struct AirshipEmbeddedView<PlaceHolder> : View where PlaceHolder : View
Airship embedded view - a scene that can be embedded in an app and managed remotely
-
Creates a new AirshipEmbeddedView.
Declaration
Swift
@MainActor public init( embeddedID: String, embeddedSize: AirshipEmbeddedSize? = nil, @ViewBuilder placeholder: @escaping () -> PlaceHolder = { EmptyView()} )Parameters
embeddedIDThe embedded ID.
sizeThe embedded size info. This is needed in a scroll view to determine proper percent based sizing.
placeholderThe place holder block.
-
Creates a new AirshipEmbeddedView.
Declaration
Swift
@MainActor public init( embeddedID: String, embeddedSize: AirshipEmbeddedSize? = nil ) where PlaceHolder == EmptyViewParameters
embeddedIDThe embedded ID.
sizeThe embedded size info. This is needed in a scroll view to determine proper percent based sizing.
-
Declaration
Swift
@MainActor public var body: some View { get }
View on GitHub