Questions tagged [uinavigationbarappearance]
47 questions
15
votes
2 answers
What is the right way to set back button arrow tint in ios 13
In ios 13, Apple introduced the new UINavigationBarAppearance proxy object to set the navigation bar appearance. I've been able to set almost everything I needed except one small thing. The back button's arrow is always rendered with blue tint color…

Roman
- 949
- 7
- 16
9
votes
2 answers
How to change navigation bar & back button colour iOS 15
I have UIkit project and I want to change navigation bar colour and back button colour.It is working fine on previous versions. but not in iOS 15. I put following code on AppDelegate,It is change the Title colour but not back button item colour.How…

Dilan
- 2,610
- 7
- 23
- 33
7
votes
3 answers
SwiftUI override navigation bar appearance in detail view
I've got a super simple SwiftUI master-detail app:
import SwiftUI
struct ContentView: View {
@State private var imageNames = [String]()
var body: some View {
NavigationView {
MasterView(imageNames: $imageNames)
…

KerrM
- 5,139
- 3
- 35
- 60
6
votes
1 answer
Navigating to a view controller with a transparent navigation bar from a non-transparent navigation bar on iOS 15
On iOS 15, when navigating to a view controller that has a transparent navigation bar, the animation to the transparent bar isn't working as expected.
However, if you navigate back to the view controller with a transparent navigation bar, the…

karlingen
- 13,800
- 5
- 43
- 74
6
votes
3 answers
How to use UINavigationBarAppearance in iOS 13
How do you use this new object to customize the navigation bar in iOS 13? I tried the following code in Objective-C but it's not working correctly. It only shows my title text attributes while a view controller is being pushed or popped on to the…

Berry Blue
- 15,330
- 18
- 62
- 113
4
votes
1 answer
Status bar style not changing in iOS 15
I want to change status bar style based on the screen content. For darker screens, status bar content should be white. For lighter screens, status bar content should be black.
It seems that the problem only occurs in iOS 15 devices.
Below screenshot…

Thet Htun
- 471
- 5
- 13
4
votes
5 answers
iOS 13 Navigation Bar Large Title Issue
I am trying to show a large Title in a Navigation bar, but with clear background. When scrolled up, it will be the Navigation bar with a blur effect.
This looks correct, however, when scrolling, the animation seems to be broken. Also,…

Gizmodo
- 3,151
- 7
- 45
- 92
3
votes
1 answer
App builded by Xcode version 13 crashed on ios 12
My app is working fine on iOS 15 and 14, maybe 13 too. But when I run on older device using iOS 12, its crash on start, even before didFinishLaunchingWithOptions is triggered. It was working fine the last time I build using Xcode 12.
Terminating app…

Mat Yus
- 289
- 1
- 2
- 14
2
votes
0 answers
How to change navigation bar of PHPickerViewController on iOS 15?
I have an issue with navigation bar only on iOS15. I did all settings in AppDelegate but it does not help.
let navBarAppearance = UINavigationBarAppearance()
navBarAppearance.configureWithOpaqueBackground()
…

bobermiha
- 21
- 4
2
votes
2 answers
UITableView content stuck under UINavigationBar, maybe caused by scrollEdgeAppearance?
I've made hundreds of table view controllers over the last decade and I don't know why this is happening. The content of my UITableView is stuck under my UINavigationBar (with a background color) in my UINavigationController. I was having this…

Kenny Wyland
- 20,844
- 26
- 117
- 229
2
votes
2 answers
Dynamically change and update color of Navigation Bar in SwiftUI
I'm trying to change the NavigationBar background color in SwiftUI which I have done with the following code. However, I have yet to figure out how I can dynamically change and update the background color of the navigation bar.
struct ContentView:…

calebm
- 485
- 1
- 4
- 8
2
votes
3 answers
barTintColor not applied when NavigationBar is Large Titles
I'm updating an app that was compiled on Xcode 10 and running fine up through iOS 13. I wanted to make some changes so recompiled on Xcode 11 and now have a problem with the barTintColor.
If 'Large Titles' is set to 'Always' my custom barTintColor…

tkhelm
- 345
- 3
- 14
2
votes
3 answers
UINavigationBar Back Button Title can't be removed using navigation bar appearance for iOS 13
In my application, I want to remove the UINavigationBar Back Button title.
I have done the following codes
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
…

Ankur Lahiry
- 2,253
- 1
- 15
- 25
1
vote
2 answers
UINavigationBarAppearance Button tintColor isn’t working with SwiftUI (in iOS 16)
The Problem
In order to customize the NavigationBar in my full SwiftUI app, I had to use a bridge to UIKit using the UINavigationBarAppearance() to change the background, title attributes, etc. Now, with my dark background image I want to use a…

alexkaessner
- 1,966
- 1
- 14
- 39
1
vote
0 answers
Apply different custom UINavigationBar styles for multiple Views in SwiftUI
I am currently struggling with defining multiple custom UINavigationBars for different Views in SwiftUI.
I have defined two different appearances in my UINavigationBar extension: a default one and one with a transparent background.
I am calling…

Anh Montag
- 11
- 1