<!--
{
  "availability" : [
    "iOS: 16.4.0 -",
    "iPadOS: 16.4.0 -",
    "macCatalyst: 16.4.0 -",
    "macOS: 13.3.0 -",
    "tvOS: 16.4.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/MenuActionDismissBehavior/automatic",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI25MenuActionDismissBehaviorV9automaticACvpZ"
  },
  "title" : "automatic"
}
-->

# automatic

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

```
static let automatic: MenuActionDismissBehavior
```

## Discussion

In most cases, the default behavior is [`enabled`](/documentation/SwiftUI/MenuActionDismissBehavior/enabled). There are some
cases, like [`Stepper`](/documentation/SwiftUI/Stepper), that use [`disabled`](/documentation/SwiftUI/MenuActionDismissBehavior/disabled) by default.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)