An optional string to display as a badge. Set the value to nil
to hide the badge.
Instance Method
インスタンスメソッド
badge(_:)
Generates a badge for the view from a string.
Availability 有効性
- iOS 15.0+
- iPadOS 15.0+
- macOS 12.0+
- Mac Catalyst 15.0+
Technology
- Swift
UI
Declaration 宣言
func badge<S>(_ label: S?) -> some View
where S : StringProtocol
Parameters パラメータ
label