An optional Text
view 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 text view.
Availability 有効性
- iOS 15.0+
- iPadOS 15.0+
- macOS 12.0+
- Mac Catalyst 15.0+
Technology
- Swift
UI
Declaration 宣言
Parameters パラメータ
label
Discussion 議論
Badges are only displayed in list rows and tab bars.
Use a badge to convey optional, supplementary information about a view. Keep the contents of the badge as short as possible.