1

I'm trying to configure a dynamic image for shadowImage using an image from Assets catalog:

let navigationBar = UINavigationBar.appearance()
navigationBar.shadowImage = UIImage(named: "test") // image is configured for dark/light appearance

but it doesn't work, only a light image displayed in both themes. The same behavior I can see for backgroundImage.

Is there a workaround for my problem? Or have I just missed something in the implementation?

Muneeb Ali
  • 472
  • 6
  • 14
Nikita Ermolenko
  • 2,139
  • 2
  • 19
  • 41

0 Answers0