Ventura and Xcode 15.2. Published: June 3rd 2025
This simple solution, is a prime example of how NOT TO DO IT. The tiny "OK" button, doesn't just miss the Apple Human Interface Guidelines, it visually looks odd and lets the application down.
Yes, it's that simple, use a toolbar and the placement attributes to specify which buttons perform which action and SwiftUI will not only place the buttons correctly, but will resize the default and cancel buttons to match the Apple Human Interface Guidelines.
As a bonus tip, in this example we're showing the macOS Help Button in systems running macOS 14 or newer. The
isn't available on Ventura or lower.
Site managed by Strawberry Software's Lifeboat - running on DigitalOcean's platform.
Pages
Products Contact Weblog SwiftUI PromosCompany
About Us Environment Privacy Terms Update PlansConnect
Bluesky Facebook Threads X / Twitter Mailing List