Modifiers
deleteDisabled
Disables the delete action for a view in a list. Apply to items within a ForEach to prevent them from being deleted.
deleteDisabled(disabled)
| Parameter | Type | Description |
|---|---|---|
disabled(optional) | boolean | Whether deletion should be disabled. Default: true |
Disables the delete action for a view in a list. Apply to items within a ForEach to prevent them from being deleted.
Returns: ModifierConfig
See: Official SwiftUI documentation.
Works with
Sources
The original Expo docs for this page:
- deleteDisabled (Modifiers) (
source-of-truth/versions/v57.0.0/sdk/ui/swift-ui/modifiers.md)