Apple updated its Human Interface Guidelines for Sheets on March 24, 2026 to add guidance for button placement in the toolbar. "In iOS & iPadOS, the Cancel button belongs on the leading edge of the top toolbar." Time to update my apps 🙂 Documentation: developer.apple.com/design/human...
Post
But some people on X pointed that Apple doesn’t respect this guideline. Or maybe a “Close” behaves differently than a “Cancel”? 🤔 What’s Apple stake on this @mikestern.bsky.social? Could you please specify in the Apple HIG if this is valid for both Close and Cancel? Thanks! x.com/vistar941/st...
0 reposts5 likes
There are new roles (close and confirm) along with a new initializer requiring no label at all.That's why there are so many checkmarks and xmarks in 26 Confirm -> save, cancel -> something gets lost, destructive -> delete, close exploreswiftui.com/library/butt... developer.apple.com/documentatio...
In SwiftUI (UIKit too?), there is the semantic cancellationAction ToolbarItemPlacement. “In iOS, iPadOS, tvOS, and watchOS, the system places cancellationAction items on the leading edge of the navigation bar.” Maybe there should be a closeAction too? developer.apple.com/documentatio...
There is a button role .close which places the button on the right side in the top toolbar: developer.apple.com/documentatio...