Post

Replies

Boosts

Views

Activity

iOS15 NavigationBar background
Hi,I set My navigationBar like this in viewWillApper appearance.configureWithOpaqueBackground() appearance.backgroundColor = <your tint color> navigationBar.standardAppearance = appearance; navigationBar.scrollEdgeAppearance = navigationBar.standardAppearance UINavigationBar.isTranslucent = false The page behaves normally when it first appears, inwiewWilDisappear,I set another style for the next page that will appear When the page returns from another controller by dismissViewControllerAnimated:completion The background of the navigation bar will first appear transparent and then display the correct background but works fine on iOS14
1
0
3.5k
Jun ’21