SwiftstructSwiftUI

struct SwiftUI.Badge

Structure

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

inherits{}

Members 7

  1. fieldvar _appearsActive: SwiftUI.Environment<Bool>
  2. fieldvar _backgroundProminence: SwiftUI.Environment<SwiftUI.BackgroundProminence>
  3. fieldvar _dynamicTypeSize: SwiftUI.Environment<SwiftUI.DynamicTypeSize>
  4. fieldvar _pixelLength: SwiftUI.Environment<CoreGraphics.CGFloat>
  5. fieldvar _prominence: SwiftUI.Environment<SwiftUI.BadgeProminence>
  6. fieldvar label: A
  7. typealiastypealias Body = SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<A, SwiftUI._EnvironmentKeyWritingModifier<Swift.Optional<SwiftUI.Font>>>, SwiftUI._ForegroundStyleModifier<SwiftUI.AnyShapeStyle>>, SwiftUI._PaddingLayout>, SwiftUI._FlexFrameLayout>, SwiftUI._FrameLayout>, SwiftUI._InsettableBackgroundShapeModifier<SwiftUI.AnyShapeStyle, SwiftUI.Capsule>>, SwiftUI.AccessibilityAttachmentModifier>
struct Badge<A> where A: SwiftUI.View {
    var label: A
    // synthesized from the backing storage `_prominence`; the property's own accessors are stripped
    @SwiftUI.Environment var prominence: SwiftUI.BadgeProminence {
        get
    }
    // synthesized from the backing storage `_backgroundProminence`; the property's own accessors are stripped
    @SwiftUI.Environment var backgroundProminence: SwiftUI.BackgroundProminence {
        get
    }
    // synthesized from the backing storage `_appearsActive`; the property's own accessors are stripped
    @SwiftUI.Environment var appearsActive: Swift.Bool {
        get
    }
    // synthesized from the backing storage `_dynamicTypeSize`; the property's own accessors are stripped
    @SwiftUI.Environment var dynamicTypeSize: SwiftUI.DynamicTypeSize {
        get
    }
    // synthesized from the backing storage `_pixelLength`; the property's own accessors are stripped
    @SwiftUI.Environment var pixelLength: CoreGraphics.CGFloat {
        get
    }
}