SwiftstructImagePlaygroundInternal
VariantSelectorView
struct ImagePlaygroundInternal.VariantSelectorView
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwiftUI.View
Members 6
- field
var _selection: SwiftUI.Binding<B?> - field
let content: (B) -> A - field
let elementDetailProvider: (B) -> ImagePlaygroundInternal.VariantSelectorView<A, B>.ElementDetails? - field
let elements: [B] - field
let spacing: CoreGraphics.CGFloat? - typealias
typealias 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>>>
Header
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 }