I wanted to ask how to change the background colour of Button on macOS. The .tint modifier not work.
Is there any new API in Sonoma where I can set the sidebar toolbar color? The current API in Ventura will set the entire toolbar color for both sidebar and content.
How should we handle situations where a segmented control is appropriate but the actual design of a system segmented control makes it unfeasible (either there are either too many options or the labels are too long)?
To remove the translucent background of the sidebar on macOS when using a NavigationView I was recommended to set .scrollContentBackground(.hidden). But I have not been able to get this to work. What is the correct way to implement this? I basically want to set my own solid background color for the entire sidebar. Right now I am forced to use introspect to set the background color of the List combined with setting the background for the entire sidebar. I want a solid "plain old" color and I am using sidebar list styling. I am not using NavigationLinks but instead change the state of a selected row (folder) that in turn updates the content view. I will attach a screenshot so that you can see what it looks like.
Is there a way in SwiftUI to remove the shadow from a Navigation bar?
I was trying to customize the colors inside the Picker, but it seems this is currently not possible. For example with the code below I see all items as black and white, not colorized (and as you see tried different color properties - none of them helped)
Is it possible to style a .searchable
search bar without resorting to global .appearance()
modifications?
I want to have an option in my app to change the tint of the whole app. What should I use? I tried to update the tint color in the root view but it is not working for places where I use the .accentColor (like a Text, a Shape, etc). Is there a way to update the .accentColor in the app or should I specify the color in every View that needs to use it?
Is there a way to change the background color of the searchable modifier that is in navigationBar? I have my toolbarBackground set up as a color but my searchable blends.
Regarding San Francisco's “high legibility” alternate style set: since there isn’t a proper font modifier for this, is it safe to assume using the stylistic set key is shelf-stable? (I think it was kStylisticSetSix
or something)