Questions tagged [preferslargetitles]
54 questions
1
vote
2 answers
How to get the navigation bar to show large title upon a segue back?
I have a tab bar app where one of the views is a UITableViewController containing static cells as content with 1 section and 1 row.
I want the Large Title to be set to "Always," so I made the selection on the storyboard and the title was large on…

William Chiang
- 85
- 2
- 12
1
vote
0 answers
Xcode 11 navigation bar is not translucent
Just switched to Xcode 11 beta 4. Tried doing some work with Navigation Controller but I can't seem to get my navigation bar to be translucent. The code works fine on Xcode 10 though. Any idea how to resolve this?
let redVC =…

StormKop
- 61
- 1
- 7
1
vote
0 answers
How to fix UISearchBar flick animation while transitioning view controllers?
From iOS 11 (and above) i try to incorporate large titles (with UISearchController). One of my screen doesn't have a UITableView as first child on the hierarchy (but rather UIPageViewController, this cause that the navigationBar is not collapsed…

José Roberto Abreu
- 176
- 1
- 14
1
vote
1 answer
UINavigationBar large title not resizing when performing segues
I've used this code in my main UIViewController to have a large title:
navigationController?.navigationBar.prefersLargeTitles = true
But I don't want that to happen in every view, indeed I just want that large title in my main view.
So, reading…
user8600465
0
votes
1 answer
UINavigationBar LargeTitle , searchbar didn't work
enter image description here
enter image description here
I want to make it like the picture below, but it comes out like the picture above.
Here is My Code.
lazy var button = UIDropDownButton().then {
$0.setAction().subscribe(onNext: {
…

장서영
- 37
- 4
0
votes
1 answer
Large Titles Not Being Set Via Extension [Swift 5]
I have an extension to configure my UINavigationController with large titles which I call in ViewDidLoad of my controller;
extension UINavigationController {
func configure(with title: String) {
…

David Henry
- 1,972
- 20
- 43
0
votes
1 answer
Is this code correct for enable large titles?
import UIKit
class GoalViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
navigationController?.navigationBar.prefersLargeTitles = true
navigationItem.title = "Goal"
…
user14469311
0
votes
1 answer
Navigation Bar Title switches from Small to Large text after switching ViewControllers and scrolling down?
I just noticed this issue in my app. I don't wan't to have Large titles at all, so this is the code that I'm calling in my viewDidLoad()...
//MARK: - Navigation Bar Setup
func navConAcc() {
let addBarButton =…
user12329049
0
votes
0 answers
How to remove white lines at the bottom of NavigationBar by transition from large titles to small titles
Is there a way to do the transition cleaner, without these white lines?
In rootView I've:
navigationController?.navigationBar.prefersLargeTitles = true
and in Detailview:
navigationItem.largeTitleDisplayMode = .never
In AppDelegate:
let…

Miguel Herrero
- 39
- 2
0
votes
0 answers
Horizontal position of UISearchBar when using UISearchController and large titles
UISearchController created and used like this in viewDidLoad
search = UISearchController(searchResultsController: nil)
search.searchResultsUpdater = self
search.obscuresBackgroundDuringPresentation = false
search.definesPresentationContext =…

andriy_fedin
- 175
- 2
- 9
0
votes
1 answer
NavigationBar prefersLargeTitle not working
Using iOS 13.3,
I observe a strange behaviour of the navigationBar. If dragging up, the navigationBar contracts. (see video)
Don't worry about the tabs that are part of the navigationBar. The strange behaviour also happens without them. And also the…

iKK
- 6,394
- 10
- 58
- 131
0
votes
1 answer
NavigationBar large title not collapse when I have custom image/view under tableView iOS 13
I have an issue with collapsing navigation bar with largeTitles enabled. Basically if there is nothing under the table view, everything is working fine. Once I am adding a default image under the table view, scroll is working on table view, but…

Bonnke
- 896
- 1
- 12
- 24
0
votes
2 answers
How to tweak large title in order to keep the transition but hide the large title itself?
From a UITabbarViewController I have a root view controller CarDetails as in the first image.
This VC can scroll upwards as shown in the second image, with the large title transitioning to regular navigation display, with the title entered, on the…

Stéphane de Luca
- 12,745
- 9
- 57
- 95
0
votes
0 answers
how to collapse navigationBar with large title at custom scroll offset rather than at the top of a UITableView?
I've got a tableView which is inside a view controller which is embedded in a navigation controller.
I want to customize the way the large title navigation bar shrinks to a small navigation bar. Normally, when you scroll to the top of a tableView,…

WalterBeiter
- 2,021
- 3
- 23
- 48
0
votes
3 answers
how to get largeTitle on current vc, but small title on vc being pushed to?
I have a simple "more" screen where I want to have a largeTitle.
I have several entries in a static table view which are leading to other view controllers.
I want to have the large title in the "more" screen, but not in the screens pushed to.…

WalterBeiter
- 2,021
- 3
- 23
- 48