Questions tagged [preferslargetitles]

54 questions
13
votes
4 answers

Show search bar in navigation bar and large title also without scrolling on iOS 13

I’m attaching a UISearchController to the navigationItem.searchController on iOS 13. This works fine: I can use the nice iOS 13-style search bar. However, I’d like see the large titles and searchBar by default. I set…
Bonnke
  • 896
  • 1
  • 12
  • 24
12
votes
2 answers

iOS 13 - Buggy Large Title UINavigationBar while pushing

With the iOS 13 update, I've got an annoying bug that I still wasn't able to solve when I have the prefersLargeTitles = true on my UINavigationBar and I perform a push segue. Plus, even if I'm not 100% sure if it's related to it, my view controller…
11
votes
1 answer

Title and Subtitle on Large Navigation Bar Swift

I've seen similar posts on stack overflow, but haven't seen any specific to large navigation bars that change size as the user scrolls down. What I would like to achieve is a left-aligned title and subtitle in my navigation bar that either hides or…
Jacobo Koenig
  • 11,728
  • 9
  • 40
  • 75
10
votes
0 answers

Multiline navigation bar title truncating on iOS13

I have a view controller where I need to display multiline title on the navigation bar. For this, I have written a protocol like this - import UIKit protocol CustomNavigationBar { func setupNavigationMultilineTitle(titleText: String,…
9
votes
4 answers

Remove 1px line at top of UISearchController in large titles UINavigationBar

I'm transitioning from a view with a large style UINavigationItem into a view that has a large style UINavigationItem and a UISearchController. I've customized the background colour of the UINavigationBar. For some reason, there's a 1px line or…
Ben Johnson
  • 2,632
  • 3
  • 21
  • 20
8
votes
4 answers

UIScrollView + LargeTitle (iOS 11) - scroll to top and reveal the large title

I use the following code to scroll to top of the UICollectionView: scrollView.scrollRectToVisible(CGRect(origin: .zero, size: CGSize(width: 1, height: 1)), animated: true) However, on iOS 11 and 12 the scrollView only scrolls to the top, without…
Richard Topchii
  • 7,075
  • 8
  • 48
  • 115
8
votes
5 answers

prefersLargeTtitles Collapses Automatically after Loading WKWebView Webpage

I'm having issues with Large Titles collapsing after a webpage in WKWebView finishes loading. Here is GIF example of what happens. I've looked all over the internet and found two posts that might point in the right direction: prefersLargeTitles not…
Miguel
  • 101
  • 2
  • 7
7
votes
1 answer

Is there any way to change the iOS Large Title left margin?

I would like to know if is there any way to change the iOS Large Title left margin property. I tried to find the answer for it on the web, but I did not succeed. Extra question: is the default margin between items and the horizontal sides of the…
Augusto Carmo
  • 4,386
  • 2
  • 28
  • 61
6
votes
0 answers

How to shrink Large title when UICollectionView (inside horizontal CollectionView) scroll?

I am using Brian's (LBTA) youtube demo to create Scrollable Horizontal MenuBar. I am using collectionView.contentInsetAdjustmentBehavior = .never to avoid warnings in debug area. I just want to add Large title which was introduced with iOS 11. Set…
Jay Patel
  • 2,642
  • 2
  • 18
  • 40
5
votes
2 answers

How to convert Navbar Large title to Multi-line, centre aligned

I'm trying to design view controller with Multi-lined centred Large title text exactly like Ask Siri by apple (Settings->General->Keyboards->About Ask Siri, Dictation and Privacy...). I can able to achieve centred text using: let paragraph =…
Lal Krishna
  • 15,485
  • 6
  • 64
  • 84
4
votes
3 answers

UISearchController with large titles crashes in Tab bar with "Only one palette with a top boundary edge can be active outside of a transition"

I have multiple tabs in a UITabBarController. All of them have a UINavigationBar with large titles and a iOS-11-built-in-search-bar. However, switching between the tabs makes the app crash with *** Terminating app due to uncaught exception…
Sunkas
  • 9,542
  • 6
  • 62
  • 102
3
votes
0 answers

"PrefersLargeTitles" preventing background color change in all navigation bars

I have a tableViewController as my root view controller. I've been trying to change the color of the status bar to match something like this: However, when I set: navigationController?.navigationBar.prefersLargeTitles = true And apply: override…
3
votes
1 answer

Navigation Bar Large Title transition delegate

I have enabled Large Title in my navigation bar with automatic Display Mode, so that it shrinks when user scrolls. Is there a way to get notified when this transition happens? I didn't found any delegate method for this. I have a Right Bar Button…
Adam Bardon
  • 3,829
  • 7
  • 38
  • 73
3
votes
1 answer

UIRefreshControl weird jump when scrolling down with preferLargeTitles enabled

My UIRefreshControl is not working properly when I scroll down my collectionview. The refreshControl pops out even with a slight scrolling and causes the title to jump down a bit. I tried with: extendedLayoutIncludesOpaqueBars = true And that fixes…
Moisés Olmedo
  • 919
  • 1
  • 17
  • 15
3
votes
1 answer

Smooth transition when changing navigation bar "prefersLargeTitles"

I have a view controller that is pushed onto a navigation stack. The stack has navigationBar.prefersLargeTitles = true, whilst this new view controller has navigationBar.prefersLargeTitles = false. I achieve this using the following code in the view…
ajrlewis
  • 2,968
  • 3
  • 33
  • 67
1
2 3 4