SwiftstructCommunicationsUI

struct CommunicationsUI.BadgeView

Structure

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

inherits{}

Members 8

  1. fieldvar _scaleValue: SwiftUI.ScaledMetric<CoreGraphics.CGFloat>
  2. fieldvar _style: SwiftUI.State<CommunicationsUI.BadgeView.BadgeStyle>
  3. fieldvar _text: SwiftUI.State<String>
  4. initinit(text: String, foregroundColor: SwiftUI.Color, backgroundColor: SwiftUI.Color) -> CommunicationsUI.BadgeView
  5. initinit<A where A: SwiftUI.ShapeStyle>(text: String, cutoutBackgroundStyle: A) -> CommunicationsUI.BadgeView
  6. initinit(text: String, style: CommunicationsUI.BadgeView.BadgeStyle) -> CommunicationsUI.BadgeView
  7. typealiastypealias Body = SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI._ConditionalContent<SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.Text, SwiftUI._PaddingLayout>, SwiftUI._PaddingLayout>, SwiftUI._BlendModeEffect>, SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftUI.Text, SwiftUI._PaddingLayout>, SwiftUI._PaddingLayout>>, SwiftUI._BackgroundModifier<SwiftUI.ModifiedContent<SwiftUI.RoundedRectangle, SwiftUI._ForegroundStyleModifier<SwiftUI.AnyShapeStyle>>>>, SwiftUI._AlignmentWritingModifier>, SwiftUI._CompositingGroupEffect>
  8. varvar body: some SwiftUI.View { get }
struct BadgeView {
    enum BadgeStyle {
        case cutout(SwiftUI.AnyShapeStyle)
        case colors(SwiftUI.Color, SwiftUI.Color)
    }
    // synthesized from the backing storage `_scaleValue`; the property's own accessors are stripped
    @SwiftUI.ScaledMetric var scaleValue: CoreGraphics.CGFloat {
        get
    }
    // synthesized from the backing storage `_text`; the property's own accessors are stripped
    @SwiftUI.State var text: Swift.String {
        get
        set
    }
    // synthesized from the backing storage `_style`; the property's own accessors are stripped
    @SwiftUI.State var style: CommunicationsUI.BadgeView.BadgeStyle {
        get
        set
    }

    init(text: Swift.String, foregroundColor: SwiftUI.Color, backgroundColor: SwiftUI.Color)
    init<A>(text: Swift.String, cutoutBackgroundStyle: A) where A: SwiftUI.ShapeStyle
    init(text: Swift.String, style: CommunicationsUI.BadgeView.BadgeStyle)

    var body: some SwiftUI.View {
        get
    }
}