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
embeddedID
The embedded ID.
size
The embedded size info. This is needed in a scroll view to determine proper percent based sizing.
placeholder
The place holder block.
-
Creates a new AirshipEmbeddedView.
Declaration
Swift
@MainActor public init( embeddedID: String, embeddedSize: AirshipEmbeddedSize? = nil ) where PlaceHolder == EmptyView
Parameters
embeddedID
The embedded ID.
size
The 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 }