IOS 26: Die System-Zurück-Schaltfläche in UINavigationBar zeigt unerwünschten „Glas“-Hintergrund – wie kann man ihn entfIOS

Programmierung für iOS
Anonymous
 IOS 26: Die System-Zurück-Schaltfläche in UINavigationBar zeigt unerwünschten „Glas“-Hintergrund – wie kann man ihn entf

Post by Anonymous »

Seit dem Update auf iOS 26 hat die System-Zurück-Schaltfläche in meinem UINavigationController jetzt einen abgerundeten, durchscheinenden, glasähnlichen Hintergrund (eine „Lupe“-Kapsel).
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

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post