Thanks. This still doesn't work in macOS. For the button to be flush to the top I still need the .ignoresSafeArea modifier, and then the button is not clickable like before. Even if it worked, I need it to work in macOS 15+, not just Tahoe, and safeAreaBar is only available in os26 and above.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: