AirshipEmbeddedObserver
@MainActor
public final class AirshipEmbeddedObserver : ObservableObject
Observable model for Airship embedded views
-
An array of embedded infos
Declaration
Swift
@Published public var embeddedInfos: [AirshipEmbeddedInfo] { get set }
-
Creates a new view model for the given embedded ID .
Declaration
Swift
public convenience init(embeddedID: String)
Parameters
embeddedID
The embedded ID to filter the embeddedInfos on.
-
Creates a new view model for the given embedded IDs.
Declaration
Swift
public convenience init(embeddedIDs: [String])
Parameters
embeddedID
An array of embedded IDs to filter the embeddedInfos on.
-
Creates a new view model for embedded infos.
Declaration
Swift
public convenience init()
-
Creates a new view model with the given predicate.
Declaration
Swift
public init(predicate: @escaping @MainActor (AirshipEmbeddedInfo) -> Bool)
Parameters
predicate
A predicate to filter out AirshipEmbeddedInfo.