SwiftstructCommunicationsUI
struct CommunicationsUI.BadgeView
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwiftUI.View
Members 8
- field
var _scaleValue: SwiftUI.ScaledMetric<CoreGraphics.CGFloat> - field
var _style: SwiftUI.State<CommunicationsUI.BadgeView.BadgeStyle> - field
var _text: SwiftUI.State<String> - init
init(text: String, foregroundColor: SwiftUI.Color, backgroundColor: SwiftUI.Color) -> CommunicationsUI.BadgeView - init
init<A where A: SwiftUI.ShapeStyle>(text: String, cutoutBackgroundStyle: A) -> CommunicationsUI.BadgeView - init
init(text: String, style: CommunicationsUI.BadgeView.BadgeStyle) -> CommunicationsUI.BadgeView - typealias
typealias 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> - var
var body: some SwiftUI.View { get }
Header
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 } }