Swiftstruct_JetEngine_SwiftUI

struct _JetEngine_SwiftUI.Observe

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 6

  1. fieldvar _coordinator: SwiftUI.StateObject<_JetEngine_SwiftUI.Observe<A, B>.Coordinator>
  2. fieldlet content: (A.EventEmitter.Event?) -> B
  3. initinit(_: A, content: (A.Event?) -> B) -> _JetEngine_SwiftUI.Observe<A, B>
  4. initinit(_: A, content: () -> B) -> _JetEngine_SwiftUI.Observe<A, B>
  5. typealiastypealias Body = B
  6. varvar body: some SwiftUI.View { get }
struct Observe<A, B> where A: JetEngine.EventEmitter, B: SwiftUI.View {
    class Coordinator {
        // synthesized from the backing storage `_mostRecentEvent`; the property's own accessors are stripped
        @Combine.Published var mostRecentEvent: A.Event? {
            get
            set
        }
        let consistencyLock: os.OSAllocatedUnfairLock<()>
    }
    // synthesized from the backing storage `_coordinator`; the property's own accessors are stripped
    @SwiftUI.StateObject var coordinator: _JetEngine_SwiftUI.Observe<A, B>.Coordinator {
        get
    }
    let content: (_: A.Event?) -> B

    init(_: A, content: @escaping (_: A.Event?) -> B)
    init(_: A, content: @escaping () -> B)

    var body: some SwiftUI.View {
        get
    }
}