79771866

Date: 2025-09-22 16:59:37
Score: 0.5
Natty:
Report link

UINavigationBar 's background color change can be achieved by UINavigationBarAppearance

let appearance = UINavigationBarAppearance()
appearance.configureWithOpaqueBackground()
appearance.backgroundColor = .black
        
navigationController?.navigationBar.standardAppearance = appearance
navigationController?.navigationBar.scrollEdgeAppearance = appearance

For the UIBarButtonItem , Liquid glass automatically chooses the tint color depending upon the background of the navigation example:

Dark Background: iOS 26 Navigation Bar Image with Dark Backround

Light Background: iOS 26 Navigation Bar Image with Light background

Additionally, if you set the value of style property of UIBarButtonItem to UIBarButtonItem.Style.prominent it would change the liquid glass background color like this:

nb1.style = .prominent
nb2.style = .prominent
nb3.style = .prominent
nb4.style = .prominent

iOS 25 Navigation Bar Image with UIBarButtonItem tint colors

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Kishore Narang