AirshipEmbeddedObserver

@MainActor
public final class AirshipEmbeddedObserver : ObservableObject

Observable model for Airship embedded views

  • An array of embedded infos

    Declaration

    Swift

    @Published
    @MainActor
    public var embeddedInfos: [AirshipEmbeddedInfo] { get set }
  • Creates a new view model for the given embedded ID .

    Declaration

    Swift

    @MainActor
    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

    @MainActor
    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

    @MainActor
    public convenience init()
  • Creates a new view model with the given predicate.

    Declaration

    Swift

    @MainActor
    public init(predicate: @escaping @MainActor (AirshipEmbeddedInfo) -> Bool)

    Parameters

    predicate

    A predicate to filter out AirshipEmbeddedInfo.