SwiftstructImagePlaygroundInternal

struct ImagePlaygroundInternal.VariantSelectorView

Structure

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

inherits{}

Members 6

  1. fieldvar _selection: SwiftUI.Binding<B?>
  2. fieldlet content: (B) -> A
  3. fieldlet elementDetailProvider: (B) -> ImagePlaygroundInternal.VariantSelectorView<A, B>.ElementDetails?
  4. fieldlet elements: [B]
  5. fieldlet spacing: CoreGraphics.CGFloat?
  6. typealiastypealias Body = SwiftUI.HStack<SwiftUI.ForEach<Swift.Array<B>, B.Swift.Identifiable.ID, SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.Button<A>, SwiftUI._ContentShapeModifier<SwiftUI.Rectangle>>, SwiftUI.PrimitiveButtonStyleContainerModifier<SwiftUI.PlainButtonStyle>>, SwiftUI.AccessibilityAttachmentModifier>>>
struct VariantSelectorView<A, B> where A: SwiftUI.View, B: Swift.Identifiable {
    struct ElementDetails {
        let accessibilityLabel: Swift.String?
    }
    // synthesized from the backing storage `_selection`; the property's own accessors are stripped
    @SwiftUI.Binding var selection: B? {
        get
        set
    }
    let elements: [B]
    let spacing: CoreGraphics.CGFloat?
    let elementDetailProvider: (_: B) -> ImagePlaygroundInternal.VariantSelectorView<A, B>.ElementDetails?
    let content: (_: B) -> A
}