Skip to content
Discussion options

You must be logged in to vote

Hi Geo 👋

The issue you’re describing is almost certainly related to iOS Dark Mode.

Why this happens

  • Since iOS 13, apps automatically adapt to Light/Dark mode unless explicitly configured.
  • If you didn’t force a style or use adaptive colors, the system will invert colors:
    • In Light Mode, default text appears black.
    • In Dark Mode, default text appears white.
  • On your device and simulator, you likely tested only in Light Mode. But users with Dark Mode enabled see white text, which clashes with your background if it’s also light.

Solutions

✅ Preferred: Use semantic system colors

Instead of hardcoding .black or .white, use adaptive colors like .label or .systemBackground:

myLabel.textColor = .l…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@GGN2007
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@GGN2007
Comment options

Answer selected by GGN2007
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Ask and answer questions about GitHub features and usage Programming Help Discussions around programming languages, open source and software development
4 participants