---
title: warning
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/sensoryfeedback/warning
---

# warning

Indicates that a task or action has produced a warning of some kind.

## Declaration

```swift
static let warning: SensoryFeedback
```

## Discussion

Discussion Only plays feedback on iOS and watchOS.

## See Also

### Indicating the outcome of an operation

- [success](swiftui/sensoryfeedback/success.md)
- [error](swiftui/sensoryfeedback/error.md)
