Recorded · no net change

Changes in this version

Pages missing from one check, then back (no net change).

5 sections · 34 additions, 0 deletions

Other pages in this version: 1373 sections on 156 pages. All pages changed in v12

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.

Ornaments: Not assessed
Rules require at least Notable: the section is new.
Ornaments › 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.
Ornaments › 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.
Ornaments › Resources: Not assessed
Rules require at least Notable: the section is new.
Ornaments › Change log: Not assessed
Rules require at least Notable: the section is new.

Assessment history

  1. : recorded from earlier history (proposed)
34 additions, 0 deletions

Ornaments

An ornament floats in a plane that’s parallel to its associated window and slightly in front of it along the z-axis. If the associated window moves, the ornament moves with it, maintaining its relative position; if the window’s contents scroll, the controls or information in the ornament remain unchanged.

Ornaments can appear on any edge of a window and can contain UI components like buttons, segmented controls, and other views. The system uses ornaments to create and manage components like toolbars, tab bars, and video playback controls; you can use an ornament to create a custom component.

Not assessed · Best practices

Best practices

Consider using an ornament to present frequently needed controls or information in a consistent location that doesn’t clutter the window. Because an ornament stays close to its window, people always know where to find it. For example, Music uses an ornament to offer Now Playing controls, ensuring that these controls remain in a predictable location that’s easy to find.

In general, keep an ornament visible. It can make sense to hide an ornament when people dive into a window’s content — for example, when they watch a video or view a photo — but in most cases, people appreciate having consistent access to an ornament’s controls.

If you need to display multiple ornaments, prioritize the overall visual balance of the window. Ornaments help elevate important actions, but they can sometimes distract from your content. When necessary, consider constraining the total number of ornaments to avoid increasing a window’s visual weight and making your app feel more complicated. If you decide to remove an ornament, you can relocate its elements into the main window.

Aim to keep an ornament’s width the same or narrower than the width of the associated window. If an ornament is wider than its window, it can interfere with a tab bar or other vertical content on the window’s side.

Consider using borderless buttons in an ornament. By default, an ornament’s background is glass, so if you place a button directly on the background, it may not need a visible border. When people look at a borderless button in an ornament, the system automatically applies the hover effect to it (for guidance, see Eyes).

Use system-provided toolbars and tab bars unless you need to create custom components. In visionOS, toolbars and tab bars automatically appear as ornaments, so you don’t need to use an ornament to create these components. For developer guidance, see Toolbars and TabView.

Not assessed · Platform considerations

Platform considerations

Not supported in iOS, iPadOS, macOS, tvOS, or watchOS.

Not assessed · Resources

Resources

Layout

Toolbars

Developer documentation

ornament(visibility:attachmentAnchor:contentAlignment:ornament:) — SwiftUI

Videos

Not assessed · Change log

Change log

Date

Changes

February 2, 2024

Added guidance on using multiple ornaments.

December 5, 2023

Removed a statement about using ornaments to present supplementary items.

June 21, 2023

New page.