Relative Content

Tag Archive for swiftxcodemacosswiftui

Opening a Sheet inside a MenuBarExtra

I’m trying to open a Sheet window inside a MenuBarExtra in SwiftUI. I don’t know why it happens, but clicking inside the Sheet dismisses the MenuBarExtra and is therefore essentially unusable.

Tint colour will not apply to sidebar of NavigationSplitView

My accent color (which is set to red) will not apply to the sidebar of my NavigationSplitView. So, I tried explicitly setting the tint color to red, and still it does not work. I did try setting other items (such as the foregroundColor of Text) to red or accent, and that worked properly. It is just the sidebar which will not conform.