Modifiers
badge
Generates a badge for the view from a localized string key.
badge(value)
| Parameter | Type | Description |
|---|---|---|
value(optional) | string | Text view to display as a badge. Set the value to nil to hide the badge. |
Generates a badge for the view from a localized string key.
Returns: ModifierConfig
See: Official SwiftUI documentation.
Works with
Sources
The original Expo docs for this page:
- badge (Modifiers) (
source-of-truth/versions/v57.0.0/sdk/ui/swift-ui/modifiers.md)