SwiftstructWorkflowUI

struct WorkflowUI.GalleryContentView

Structure

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

inherits{}

Members 4

  1. fieldvar __loadingState: SwiftUI.LazyState<WorkflowUI.GalleryContentView<A, B>.LoadingState?>
  2. fieldlet content: (A) -> B+0x0
  3. fieldlet load: ((Result<A, Error>) -> ()) -> ()+0x10
  4. typealiastypealias Body = SwiftUI.ModifiedContent<SwiftUI.Group<SwiftUI._ConditionalContent<SwiftUI._ConditionalContent<SwiftUI.ProgressView<SwiftUI.Text, SwiftUI.EmptyView>, B>, WorkflowUI.GalleryErrorView>>, SwiftUI._AppearanceActionModifier>
struct GalleryContentView<A, B> where B: SwiftUI.View {
    enum LoadingState {
        case loaded(A)
        case error(any Swift.Error)
        case loading
    }
    let content: (_: A) -> B
    let load: (_: @escaping (_: Swift.Result<A, any Swift.Error>) -> ()) -> ()
    // synthesized from the backing storage `__loadingState`; the property's own accessors are stripped
    @SwiftUI.LazyState var _loadingState: WorkflowUI.GalleryContentView<A, B>.LoadingState? {
        get
        set
    }
}