---
title: UIAlertAction.Style.cancel
framework: uikit
role: symbol
role_heading: Case
path: uikit/uialertaction/style-swift.enum/cancel
---

# UIAlertAction.Style.cancel

Apply a style that indicates the action cancels the operation and leaves things unchanged.

## Declaration

```swift
case cancel
```

## Mentioned in

Getting the user’s attention with alerts and action sheets

## See Also

### Constants

- [UIAlertAction.Style.default](uikit/uialertaction/style-swift.enum/default.md)
- [UIAlertAction.Style.destructive](uikit/uialertaction/style-swift.enum/destructive.md)
