Dies bricht das Design meiner App, wo ich eine flache Zurück-Schaltfläche mit nur einem Chevron oder Symbol und ohne Hintergrund haben möchte.
Ich konfiguriere die Navigationsleiste global:
Code: Select all
let appearance = UINavigationBarAppearance()
appearance.configureWithOpaqueBackground()
appearance.backgroundColor = backgroundColor
appearance.shadowColor = .clear
appearance.titleTextAttributes = [.foregroundColor: UIColor.black]
UINavigationBar.appearance().standardAppearance = appearance
UINavigationBar.appearance().scrollEdgeAppearance = appearance
UIBarButtonItem.appearance().tintColor = .black
Mobile version