Questions tagged [preferslargetitles]

54 questions
2
votes
0 answers

UINavigationController with `prefersLargeTitle` set to true doesn't show large title right away - You have to scroll up for it to show

I have a fundamental question: I have a UINavigationController set as the secondary view of a UISplitViewController and I set its prefersLargeTitle property to true: self.navigationBar.prefersLargeTitles = true As the rootViewController of that…
2
votes
0 answers

Manually refresh UIRefreshControl not visible when using `navigationBar.prefersLargeTitles`

I create a programmatically refresh on my table view using this code extension UIRefreshControl { func beginRefreshingManually() { if let scrollView = superview as? UIScrollView { scrollView.setContentOffset(CGPoint(x: 0, y:…
Dylan
  • 1,121
  • 1
  • 13
  • 28
2
votes
0 answers

adding image behind UITableView make large title stop collapsing when scroll

I have a navigation large title and a table view, it all works fine, when I scroll the table view, the large title was still collapsing. But after I add a image behind the table view, it's not collapsing anymore. I found the answer here that says it…
Dylan
  • 1,121
  • 1
  • 13
  • 28
2
votes
1 answer

Swift - Large to Small Title Transition

I'm currently implementing a very simple TableViewController that has a navigation bar. I have set the title, turned the navigation bar translucent = true , and turned PrefersLargeTitles = true Large Title is set to Automatic on the Navigation…
Logan
  • 1,172
  • 9
  • 23
1
vote
2 answers

How can i manage both button of navigation bar when scrolling table with large navigation title?

here i can attached screenshots which i faced as an issue when scrolling at time i want to hide that more button or put that button into navigation bar as 2nd button but it's override to 1st one. i set button into did load by calling simply this…
1
vote
0 answers

How to make SwiftUI navigation Bar display large titles ALWAYS

I want to have a navigation bar display large titles always. i.e., not to make the title small in a scroll view when the scrolling. I believe previously we would achieve this typing navigationItem.largeTitleDisplayMode = .always What is the…
alionthego
  • 8,508
  • 9
  • 52
  • 125
1
vote
1 answer

view controller doesn't respect "largeTitleDisplayMode"

It seems that I can't set navigationItem.largeTitleDisplayMode = .always unless I also set navigationBar.prefersLargeTitles = true? Is this intended behavior? I'm having a really hard time believing apple would force me to manually set…
1
vote
2 answers

What are the font attributes of the text in prefersLargeTitles property?

I'm trying to re-create the look of the prefersLargeTitles property. To that end, I was wondering if anyone can tell me the font and font size used for this property? The reason why I'm trying to re-create this on my own is that when I hide the…
safetotry
  • 67
  • 6
1
vote
0 answers

Partial search updater frame when large title used

When I use a SearchController with a different searchResultsController and I have the large titles active, I get a partial view of the search view controller. It appears that the target controller is drawn taking into account the height of the…
1
vote
0 answers

Large title doesn't collapse in UIPageViewController with scroll transition style

I have a UIPageViewController that holds an array of UITableViewController. I did set navigationController?.navigationBar.prefersLargeTitles = true. When I scroll the table to the top, the title of the UIPageViewController doesn't collapse to the…
1
vote
1 answer

How to create a left aligned title with prefersLargeTitles in navigationBar?

I'm using prefersLargeTitles on my navigation bar, When it collapse, I want to align the title to the left of the navigation bar, What I did is I create a leftBarButtonItem with a custom view of label and set the title color to .clear, the problem…
Dylan
  • 1,121
  • 1
  • 13
  • 28
1
vote
1 answer

UISearchController with Large titles, UI misbehave on dismissing

I have a UITableViewController which has a UISearchController in the navigation bar. When I tap the search, pull down once and then press cancel, I see a weird UI behavior. I can't find any particular reasons why this happens. This issue is not…
imthath
  • 1,353
  • 1
  • 13
  • 35
1
vote
0 answers

Is there a bug with 'Prefers large titles' in Xcode?

Xcode has this strange behaviour of: NOT changing the root view controller's title bar to a large title in the storyboard Changing the title bar's background color to white Does anyone has the same strange experience or am I doing something…
1
vote
0 answers

NavigationBar shadowImage not showing with large title

I added a custom divider in my app via navigationBar.shadowImage and it works just fine with a small title. But when I scroll so that the NavigationBar shows the large title, the shadowImage disappears. So far I haven't found post addressing this…
Jujinko
  • 319
  • 3
  • 21
1
vote
2 answers

custom navigation bar with image and two titles in iOS

I am trying to achieve the following navigation bar with two titles and an image: Large title variant: Small title variant: I tried subclassing UINavigationBar and adding subviews to it, but they did not render at all. I tried setting a titleView…
WalterBeiter
  • 2,021
  • 3
  • 23
  • 48