enabled
TypeScriptstatic get enabled(): MenuActionDismissBehaviorSwift declarationstatic let enabled: MenuActionDismissBehaviorAlways dismiss the presented menu after performing an action.
struct · iOS 16.4+ · SDK 27.1
struct MenuActionDismissBehaviorThe set of menu dismissal behavior options. Configure the menu dismissal behavior for a view hierarchy using the ``View/menuActionDismissBehavior(_:)`` view modifier.
static get enabled(): MenuActionDismissBehaviorSwift declarationstatic let enabled: MenuActionDismissBehaviorAlways dismiss the presented menu after performing an action.
static get disabled(): MenuActionDismissBehaviorSwift declarationstatic let disabled: MenuActionDismissBehaviorNever dismiss the presented menu after performing an action.
static get automatic(): MenuActionDismissBehaviorSwift declarationstatic let automatic: MenuActionDismissBehaviorUse the a dismissal behavior that's appropriate for the given context. In most cases, the default behavior is ``enabled``. There are some cases, like ``Stepper``, that use ``disabled`` by default.
No declarations were skipped in this snapshot.