Changes in this version
Pages missing from one check, then back (no net change).
- Not assessed
6 sections
- Action sheetsAction sheets: added, 46 words Not marked in the text. Go to the first change on this page
- Action sheets › Best practicesBest practices: added, 282 words
- Action sheets › Platform considerationsPlatform considerations: added, 13 words
- Platform considerations › iOS, iPadOSiOS, iPadOS: added, 90 words
- Platform considerations › watchOSwatchOS: added, 133 words
- Action sheets › ResourcesResources: added, 16 words
6 sections · 43 additions, 0 deletions
Other pages in this version: 1372 sections on 156 pages. All pages changed in v15
Summaries are written automatically and may be wrong; the diff below is the record.
Why this level
Rules computed from the old and new text set the range a level may take; the level is then chosen within it.
- Action sheets: Not assessed
- Rules require at least Notable: a region, platform, program or kind of app was named or dropped; the section is new.
- Action sheets › Best practices: Not assessed
- Rules require at least Notable: a word such as must, may, only, not or unless was added, removed or swapped; a region, platform, program or kind of app was named or dropped; the section is new.
- Action sheets › Platform considerations: Not assessed
- Rules require at least Notable: a word such as must, may, only, not or unless was added, removed or swapped; a region, platform, program or kind of app was named or dropped; the section is new.
- Platform considerations › iOS, iPadOS: Not assessed
- Rules require at least Notable: a word such as must, may, only, not or unless was added, removed or swapped; a region, platform, program or kind of app was named or dropped; the section is new.
- Platform considerations › watchOS: Not assessed
- Rules require at least Notable: a word such as must, may, only, not or unless was added, removed or swapped; a region, platform, program or kind of app was named or dropped; the section is new.
- Action sheets › Resources: Not assessed
- Rules require at least Notable: the section is new.
Assessment history
- : recorded from earlier history (proposed)
Action sheets
Not assessed · Best practicesBest practices
Use an action sheet — not an alert — to offer choices related to an intentional action. For example, when people cancel the message they’re editing in Mail on iPhone, an action sheet provides two choices: delete the draft, or save the draft. Although an alert can also help people confirm or cancel an action that has destructive consequences, it doesn’t provide additional choices related to the action. More importantly, an alert is usually unexpected, generally telling people about a problem or a change in the current situation that might require them to act. For guidance, see Alerts.
Use action sheets sparingly. Action sheets give people important information and choices, but they interrupt the current task to do so. To encourage people to pay attention to action sheets, avoid using them more than necessary.
Aim to keep titles short enough to display on a single line. A long title is difficult to read quickly and might get truncated or require people to scroll.
Provide a message only if necessary. In general, the title — combined with the context of the current action — provides enough information to help people understand their choices.
If necessary, provide a Cancel button that lets people reject an action that might destroy data. Place the Cancel button at the bottom of the action sheet (or in the upper-left corner of the sheet in watchOS). A SwiftUI confirmation dialog includes a Cancel button by default.
Make destructive choices visually prominent. Use the destructive style for buttons that perform destructive actions, and place these buttons at the top of the action sheet where they tend to be most noticeable. For developer guidance, see destructive (SwiftUI) or UIAlertAction.Style.destructive (UIKit).
Not assessed · Platform considerationsPlatform considerations
No additional considerations for macOS or tvOS. Not supported in visionOS.
Not assessed · iOS, iPadOSiOS, iPadOS
Use an action sheet — not a menu — to provide choices related to an action. People are accustomed to having an action sheet appear when they perform an action that might require clarifying choices. In contrast, people expect a menu to appear when they choose to reveal it.
Avoid letting an action sheet scroll. The more buttons an action sheet has, the more time and effort it takes for people to make a choice. Also, scrolling an action sheet can be hard to do without inadvertently tapping a button.
Not assessed · watchOSwatchOS
The system-defined style for action sheets includes a title, an optional message, a Cancel button, and one or more additional buttons. The appearance of this interface is different depending on the device.
Each button has an associated style that conveys information about the button’s effect. There are three system-defined button styles:
Style | Meaning |
|---|---|
Default | The button has no special meaning. |
Destructive | The button destroys user data or performs a destructive action in the app. |
Cancel | The button dismisses the view without taking any action. |
Avoid displaying more than four buttons in an action sheet, including the Cancel button. When there are fewer buttons onscreen, it’s easier for people to view all their options at once. Because the Cancel button is required, aim to provide no more than three additional choices.
Not assessed · ResourcesResources
Related
Developer documentation
confirmationDialog(_:isPresented:titleVisibility:actions:) — SwiftUI