I’m working on iOS 26 support, and the navigation titles aren’t appearing on screens that were aligned with the safeArea Top. Is there a way to make the titles appear when the screen is large and inline? Example code is below.
self.view.backgroundColor = .white
navigationItem.title = "AVC"
navigationItem.largeTitleDisplayMode = .always
guard let navBar = navigationController?.navigationBar else { return }
navBar.prefersLargeTitles = true
navigationItem.largeTitleDisplayMode = .always
navigationItem.title = "AVC"
navigationItem.largeTitle = "AVC"
let standard = UINavigationBarAppearance()
standard.configureWithDefaultBackground()
standard.backgroundColor = .clear
standard.titleTextAttributes = [.foregroundColor: UIColor.black]
standard.largeTitleTextAttributes = [.foregroundColor: UIColor.black]
navBar.standardAppearance = standard
let largeAppearance = UINavigationBarAppearance()
largeAppearance.configureWithDefaultBackground()
largeAppearance.backgroundColor = .white
largeAppearance.titleTextAttributes = [.foregroundColor: UIColor.black]
largeAppearance.largeTitleTextAttributes = [.foregroundColor: UIColor.black]
navBar.scrollEdgeAppearance = largeAppearance
self.view.addSubview(tableView)
NSLayoutConstraint.activate([
tableView.topAnchor.constraint(equalTo: self.view.safeAreaLayoutGuide.topAnchor),
tableView.bottomAnchor.constraint(equalTo: self.view.bottomAnchor),
tableView.leadingAnchor.constraint(equalTo: self.view.leadingAnchor),
tableView.trailingAnchor.constraint(equalTo: self.view.trailingAnchor),
])