Today was a much more productive day. ☺️ Before bed yesterday, I got an idea on how to fix my problem with the custom back button - I had to use it on details view, as I couldn’t change the color of the system one just for one view. It happened that it worked!
#CodingBreakthrough #BuildInPublicTill now, I set tint color in the root view, so that it was propagated to all views in the app. Then for views I wanted to override the color, I was setting it manually. That wasn’t the greatest solution, but the one I could live with. However, it caused other strange problems as well.
Buttons and Labels were tinted correctly, but as soon as I put the app into the background and came back, the icons were always tinted with the globally set tint color. I had to manually set the color for each icon. That one I couldn’t live with, but had no choice.
#BugFixing #UI #UX #DeveloperLifeUntil today! 🥳 I was already using a global observable object that’s responsible for tinting the app. I just added a second field that allows it to override the color for the selected view.
#SwiftUIHacks