Changes in this version
Pages missing from one check, then back (no net change).
- Not assessed
8 sections
- Tab viewsTab views: added, 2 words Not marked in the text. Go to the first change on this page
- Tab views › Best practicesBest practices: added, 277 words
- Tab views › AnatomyAnatomy: added, 115 words
- Tab views › Platform considerationsPlatform considerations: added, 10 words
- Platform considerations › iOS, iPadOSiOS, iPadOS: added, 11 words
- Platform considerations › watchOSwatchOS: added, 13 words
- Tab views › ResourcesResources: added, 12 words
- Tab views › Change logChange log: added, 15 words
8 sections · 36 additions, 0 deletions
Other pages in this version: 1370 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.
- Tab views: Not assessed
- Rules require at least Notable: the section is new.
- Tab views › Best practices: Not assessed
- Rules require at least Notable: a word such as must, may, only, not or unless was added, removed or swapped; the section is new.
- Tab views › Anatomy: Not assessed
- Rules require at least Notable: the section is new.
- Tab views › 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 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 region, platform, program or kind of app was named or dropped; the section is new.
- Tab views › Resources: Not assessed
- Rules require at least Notable: the section is new.
- Tab views › Change log: Not assessed
- Rules require at least Notable: a region, platform, program or kind of app was named or dropped; the section is new.
Assessment history
- : recorded from earlier history (proposed)
Tab views
Not assessed · Best practicesBest practices
Use a tab view to present closely related areas of content. The appearance of a tab view provides a strong visual indication of enclosure. People expect each tab to display content that is in some way similar or related to the content in the other tabs.
Make sure the controls within a pane affect content only in the same pane. Panes are mutually exclusive, so ensure they’re fully self-contained.
Provide a label for each tab that describes the contents of its pane. A good label helps people predict the contents of a pane before clicking or tapping its tab. In general, use nouns or short noun phrases for tab labels. A verb or short verb phrase may make sense in some contexts. Use title-style capitalization for tab labels.
Avoid using a pop-up button to switch between tabs. A tabbed control is efficient because it requires a single click or tap to make a selection, whereas a pop-up button requires two. A tabbed control also presents all choices onscreen at the same time, whereas people must click a pop-up button to see its choices. Note that a pop-up button can be a reasonable alternative in cases where there are too many panes of content to reasonably display with tabs.
Avoid providing more than six tabs in a tab view. Having more than six tabs can be overwhelming and create layout issues. If you need to present six or more tabs, consider another way to implement the interface. For example, you could instead present each tab as a view option in a pop-up button menu.
For developer guidance, see NSTabView.
Not assessed · AnatomyAnatomy
The tabbed control appears on the top edge of the content area. You can choose to hide the control, which is appropriate for an app that switches between panes programmatically.
When you hide the tabbed control, the content area can be borderless, bezeled, or bordered with a line. A borderless view can be solid or transparent.
In general, inset a tab view by leaving a margin of window-body area on all sides of a tab view. This layout looks clean and leaves room for additional controls that aren’t directly related to the contents of the tab view. You can extend a tab view to meet the window edges, but this layout is unusual.
Not assessed · Platform considerationsPlatform considerations
Not supported in iOS, iPadOS, tvOS, or visionOS.
Not assessed · iOS, iPadOSiOS, iPadOS
For similar functionality, consider using a segmented control instead.
Not assessed · watchOSwatchOS
watchOS displays tab views using page controls. For developer guidance, see TabView.
Not assessed · ResourcesResources
Related
Developer documentation
TabView — SwiftUI
NSTabView — AppKit
Not assessed · Change logChange log
Date | Changes |
|---|---|
June 5, 2023 | Added guidance for using tab views in watchOS. |