0

I am building watchOS app and I am trying to change navigationBar background color from black to transparent, but I am not able to find anything. I saw this question which was asked in 2015, according to which it is impossible to change navigationBar color in watchOS. I was wondering if now there is any API for that.

Thanks for any help.

Abu Bäkr
  • 313
  • 1
  • 2
  • 10
  • Does this answer your question? [NavigationBarTitle color change for watchOS in SwiftUI](https://stackoverflow.com/questions/58035341/navigationbartitle-color-change-for-watchos-in-swiftui) – Luuk Sep 16 '22 at 08:08
  • @Luuk, I need to change background color of navigationBar, not title. – Abu Bäkr Sep 16 '22 at 09:58

1 Answers1

1

This is about Color in the human-interface-guidelines from apple:

Make sure your app’s colors work well in both light and dark appearance modes. With the exception of watchOS, which always uses a pure black background, the platforms offer a dark alternative to the default light appearance. Dark Mode uses a darker color palette for all screens, views, menus, and controls, and can increase vibrancy — a subtle effect that dynamically blends foreground and background colors — to make foreground content stand out against darker backgrounds. System colors automatically support both appearances; if you use a custom color, you need to supply both light and dark variants. For guidance, see Dark Mode.

Luuk
  • 12,245
  • 5
  • 22
  • 33