-1

I have been trying to access the below code and I got this error I didn't find any solution.

let appearance = UINavigationBarAppearance()

Use of unresolved identifier 'UINavigationBarAppearance'; did you mean 'UINavigationBarDelegate'?

rmaddy
  • 307,833
  • 40
  • 508
  • 550
Prashanth Thota
  • 158
  • 1
  • 11

2 Answers2

0

As commented by @rmaddy UINavigationBarAppearance is available for iOS 13.0+ as per the Apple's documentation. Refer to UINavigationBarAppearance.

Aakash
  • 2,149
  • 14
  • 22
0

You can use UINavigationBar.appearance() to configure NavigationBar for all iOS versions in Xcode 10.

rmaddy
  • 307,833
  • 40
  • 508
  • 550
Nikunj
  • 526
  • 1
  • 4
  • 18