Post

Replies

Boosts

Views

Activity

Reply to NavigationBar Back Button Color iOS 16
You can try this: let appearance = UINavigationBarAppearance()   appearance.configureWithOpaqueBackground() // configure       let backItemAppearance = UIBarButtonItemAppearance()   backItemAppearance.normal.titleTextAttributes = [.foregroundColor : UIColor.white] // fix text color   appearance.backButtonAppearance = backItemAppearance       let image = UIImage(systemName: "chevron.backward")?.withTintColor(.white, renderingMode: .alwaysOriginal) // fix indicator color   appearance.setBackIndicatorImage(image, transitionMaskImage: image)       UINavigationBar.appearance().tintColor = .white // probably not needed       UINavigationBar.appearance().standardAppearance = appearance   UINavigationBar.appearance().scrollEdgeAppearance = appearance   UINavigationBar.appearance().compactAppearance = appearance   UINavigationBar.appearance().compactScrollEdgeAppearance = appearance
Jul ’22