Hi, In your RecipeList app, you explicitly set the Navigation Links to
.foregroundColor(.black)
However, when running this on a device with Dark mode on, the text disappears.
How should I solve this?
Hi, In your RecipeList app, you explicitly set the Navigation Links to
.foregroundColor(.black)
However, when running this on a device with Dark mode on, the text disappears.
How should I solve this?
You should use
.foregroundColor(.primary)
instead. This will show black text in light mode and white text in dark mode.
Works like a charm.
Thank you, roosterboy!