Any #SwiftUI experts out here?
I'm struggling setting a unique tintColor of my customized NavigationBar using the UINavigationBarAppearance() bridge. Maybe someone can help?
@alexkaessner Do you need to change the button appearance directly maybe? https://developer.apple.com/documentation/uikit/uinavigationcontroller/customizing_your_app_s_navigation_bar#3950609
@jonduenas Oh nice, thanks! That was a great hint!
I’ve updated my StackOverflow question, because for some reason the following code only updates the back button and not the other action buttons.
Any ideas why?
@alexkaessner Hmm. Not sure. Assume you’re adding those buttons as ToolBarItems? Maybe have to set their tint there?
The SwiftUI to UIKit translation is a mystery to me. You’d think your code would work but
@jonduenas It's indeed a big mystery how it works or better said why not …
Anyways, the folks at StackOverflow helped me to find a solution now. So yeah the solution is to tint each individual Button of the ToolbarItems. Leads to a bit of extra code, but looks like the best possible approach: https://stackoverflow.com/a/75665184/7421005
@jonduenas Thanks a lot for looking into it and helping me out as well!
@alexkaessner Yup that’s what I thought. You could make a simple custom ButtonStyle to apply pretty easily to your toolbar buttons.