I am working on a SwiftUI iOS app. Building with the latest SDK (Xcode 15.4) to run on iOS 16 and above. We set our App’s accent color using the Global Accent Color Name build setting. As soon as I include the Intercom Package via SPM our accent color is changed to the default blue. Why is Intercom changing the accent color?
Hi
I see you were able to get in touch with my colleague Bernice and get an answer concerning this.
Our R&D team is working on a fix for this and will hopefully have one soon
I’ll re-share the explanation and workaround that was sent.
It appears that the accent color for mobile is controlled separately from the web settings, which is why you're seeing a different color on your iOS app. To change the accent color for mobile, you can adjust the settings in the Intercom mobile SDK styling section. You can find this option here: Intercom mobile SDK styling.
Additionally, if you are using SwiftUI and encountering issues with the accent color, there is a known bug at the moment and a temporary workaround is in place to set the color programmatically using the .tint(_:)
ViewModifier.
I don’t understand why Intercom is setting the accent color for the App at all. That is not a feature we need or want.
Further investigation shows that the work around kind of works but ends up affecting far more things that you would expect.
I suspect the problem is you are changing UIKit appearance stuff and if that is done after appDidFinishLanching in a SwiftUI app it appears to have the exact impact we are seeing with the accentColor not being honored.
Perhaps you could stop using this all together or provide a call we could make at the right time to force it to happen in a way that doesn’t trigger the SwiftUI issue.
This is really impacting the look and feel of our App in a negative way.
My team is working on a SwiftUI app and we’re experiencing the behavior described by
Love you
Hey all,
Thank you for all your patience here!
The R&D is still working on a fix for this issue and are trying to get a fix out as soon as possible!
We’ll be sure to update you when this happens.
Reply
Join the Intercom Community 🎉
Already have an account? Login
Login to the community
No account yet? Create an account
Intercom Customers and Employees
Log in with SSOEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.