I added a non-blue color named AccentColor to my iOS app’s assets catalogue. When running my app the tint color is default blue.
The “Global Accent Color Name” in build settings is correctly set to “AccentColor”. Do I need to set anything else? What setting could override this?
I encountered this same issue in my app. It used to work but at some point all controls became tinted the default blue instead of my custom color. I confirmed Global Accent Color Name is correct in the target's build settings and that asset catalog is added to that target.
After a bunch of debugging, I found the cause. This line of code breaks the global accent color (tested with Xcode 14 beta 5):
However, something like this does not break it:
Super odd. If you have any
UINavigationBarappearance overrides, try commenting them out to see if that's causing your issue.And as a workaround, what I'm doing is setting the window's
tintColorin the SceneDelegate (manually added for my SwiftUI app):