Questions tagged [uinavigationbarappearance]

47 questions
1
vote
0 answers

largeTitleTextAttributes disappear after programmatic push - Swift

I'm pushing to a navigation controller and the large title I have set within the shootSummary VC text attributes change without warning -- they lose their original formatting. So I've tried putting them as I've done here after the push, but that…
1
vote
1 answer

Customize UINavigationBar.appearance() on ScrollViewDidScroll?

Is it still possible to customize the navigation bar on ScrollViewDidScroll now? For example:
1
vote
0 answers

UINavigationBar appearance in UISplitViewController detail on iPad

I'm using UISplitViewController and customise the appearance of my UINavigationBar via UIAppearance and its working as expected for the most part. I want to change the navigation to pure white (Red in the example for debugging reasons) Only on iPad,…
MeXx
  • 3,357
  • 24
  • 39
1
vote
0 answers

SwiftUI technique to update UINavigationBarAppearance.backgroundImage dynamically?

I am implementing a gradient background for the top navigation bar in SwiftUI using a standard NavigationView. For the gradient I am using a UIGraphicsImageRenderer to create a gradient image which I then assign to the backgroundImage of…
1
vote
1 answer

iOS 15 Navigation Bar Transparent issue

Trying Transperent for NavigationBar in iOS 15, Its working in below version not in iOS 15. override func viewDidLoad() { // Clear the background image. self.navigationController?.navigationBar.setBackgroundImage(UIImage(), for:…
1
vote
1 answer

Mhy my NavigationBar Colour is not changing in Swift?

I made a custom NavigationBar to use on all screens like below: import Foundation import UIKit extension UIViewController { func setUpNavigationBar() { self.navigationController?.navigationBar.backgroundColor = .yellow …
1
vote
1 answer

Switching UINavigationBar Appearance in SwiftUI

I need to be able to change the colors in a SwiftUI View on demand. This is not an issue for switching colors on demand for objects in a View, but how would one be able to do that for the NavigationBar appearance properties? Here is how I set the…
Stewart Lynch
  • 875
  • 9
  • 26
1
vote
0 answers

How to enable scrollEdgeAppearance manually?

I have a controller without large title, I noticed that appearance in detail pane of UISplitViewController will enable scrollEdgeAppearance automantically. So how can I use scrollEdgeAppearance in other controller?
hanamaruby
  • 73
  • 7
1
vote
1 answer

Cannot make my status bar color to match my UINavigationBar color in SiwftUI

My problem appears to be a simple one. But I just spent hours looking for a solution! I just have to make the status bar's background color conform to my UINavigationBar background's color (red in this sample). I wrote a minimal code sample to…
1
vote
2 answers

Transparent navigation bar iOS 13

Can't create transparent NavigationBar iOS 13. I have custom UINavigationBar, where I configure UINavigationBarAppearance in override init(frame: CGRect) { super.init(frame: frame) self.configure() } required init?(coder: NSCoder) { …
1
vote
0 answers

StatusBar text color doesn't change to Light Content

There is an issue with the status bar text color in my app, it doesn't change when using override var preferredStatusBarStyle: UIStatusBarStyle { return .lightContent } I want to specify the color of StatusBar text color for…
1
vote
1 answer

Runtime crash trying to modify SwiftUI Navigation Bar Text attributes

I am trying to modify the navigation bar text attributes in SwiftUI (to add a text shadow) and have hit a wall trying to understand why I'm receiving run-time crashes in the simulator. There was another thread (ref: below) that was able to solve…
JimCSanJose
  • 233
  • 2
  • 6
1
vote
1 answer

Customizing UINavigationBar not working because of weird UINavigationBar view hierarchy

My app has many ViewControllers that are pushed on navigation stack. I have configured UINavigationBar appearance globally in AppDelegate as below. let appearance = UINavigationBar.appearance() appearance.barTintColor = myColor appearance.tintColor…
1
vote
2 answers

Font on Back Button on NavBar (Swift)

I can adjust all the other aspects of the appearance of my navigation bar - but the font of 'Back' remains stubborn. The MWE below shows four things I have tried to no avail 1) func application(_ application: UIApplication,…
0
votes
1 answer

I also want to change the background color of the Navigation Bar while it is fixed. How can I do?

I'm developing a notes application and I want the colors of the notes to match the color of the Navigation Bar. When I set the color of the Navigation Bar, the color appears only when I scroll the screen. I want the color to show up without…