Learn Courses My Dashboard

Colors not working on some devices?

I have a weird issue where I’m using the modifier

.foregroundColor(Color(“AlertDetailText”))

to set text colors in my app. I have the color set setup with “Any Appearance” set to black and “Dark Appearance” set to orange.

When in dark mode everything works great for me in simulator as well as on my iPhone and my iPad. However when someone else installed the app on their iPad via Test Flight, they are getting Black text when in dark mode.

Does anyone have any idea why it would work fine for me on everything but not for this one persons device? they sent screenshots and the app is in fact using the black text instead of Orange on black background when in dark mode.

UPDATE
I was able to get his issue worked out. This was happening because the user had the increase contrast turned on in the accessibility options of the phone.

I simply went into my color sets and added the check mark for “High Contrast”