Zufälliges Hintergrundverhalten der Zurück-Schaltfläche der Navigationsleiste in iOS 26IOS

Programmierung für iOS
Anonymous
 Zufälliges Hintergrundverhalten der Zurück-Schaltfläche der Navigationsleiste in iOS 26

Post by Anonymous »

Die Zurück-Schaltfläche der Navigationsleiste hat manchmal einen weißen Hintergrund auf der Flüssigglasschicht, wenn ich zum Bildschirm navigiere.
Image

Ich möchte, dass der Hintergrund klar ist, wie unten gezeigt.
Image

Ich stelle keinen Farbton oder Hintergrund für das Schaltflächenelement in der linken Leiste ein. Unten finden Sie den Code für das Erscheinungsbild der Navigationsleiste.

Code: Select all

let appearance = UINavigationBarAppearance()
appearance.configureWithOpaqueBackground()
appearance.backgroundColor = backgroundColor
appearance.largeTitleTextAttributes = [NSAttributedString.Key.foregroundColor: titleTextColor]
appearance.titleTextAttributes = [NSAttributedString.Key.foregroundColor: titleTextColor]
self.navigationController?.navigationBar.standardAppearance = appearance
self.navigationController?.navigationBar.scrollEdgeAppearance = self.navigationController?.navigationBar.standardAppearance
self.navigationController?.navigationBar.prefersLargeTitles = prefersLargeTitles

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post