-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
  • 314,917
  • 42
  • 532
  • 579
Prashanth Thota
  • 157
  • 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,239
  • 15
  • 23
0

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

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Nikunj
  • 630
  • 1
  • 6
  • 20