79093031

Date: 2024-10-16 08:10:32
Score: 1
Natty:
Report link

I found (thanks to Adrian comment) that adding this at the root view of the app fixes the problem:

RootView()
    // `.accent` because my color is named `AccentColor` in the asset catalog
    // Do not use `.accentColor(.accentColor)`, it will not work
    .accentColor(.accent)

But it's really weird that AdMob changes the accent color set by Xcode automatically.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Nathan Fallet