---
title: automatic
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/menuactiondismissbehavior/automatic
---

# automatic

Use the a dismissal behavior that’s appropriate for the given context.

## Declaration

```swift
static let automatic: MenuActionDismissBehavior
```

## Discussion

Discussion In most cases, the default behavior is enabled. There are some cases, like Stepper, that use disabled by default.

## See Also

### Getting dismiss behaviors

- [disabled](swiftui/menuactiondismissbehavior/disabled.md)
- [enabled](swiftui/menuactiondismissbehavior/enabled.md)
