Hi,
I've tried upgrading my project from Xcode 11.7 (11E801a) to Xcode 12 through 12.1 (12A7403) and I keep hitting a compile error with this code:
Here's the error:
I've made no other changes to the project.
Any help appreciated.
I've tried upgrading my project from Xcode 11.7 (11E801a) to Xcode 12 through 12.1 (12A7403) and I keep hitting a compile error with this code:
Code Block swift let navigationBarControllerState: [PartialKeyPath<UINavigationController>: Any] = [\UINavigationController.isNavigationBarHidden: false, \UINavigationController.navigationBar.barStyle: UIBarStyle.black, \UINavigationController.navigationBar.isTranslucent: true, \UINavigationController.navigationBar.tintColor: UIColor.white, \UINavigationController.hidesBarsOnTap: true]
Here's the error:
The same code compiles correctly in Xcode 11 and I've tried it in the Playgrounds app where it also compiles without error.Sources/Controllers/CompareViewController.swift:285:96: error: value of type 'UIViewController' has no member 'navigationBar' \UINavigationController.navigationBar.tintColor: UIColor.white,
I've made no other changes to the project.
Any help appreciated.