Reputation: 492
Large navigations bars were displayed by default but it suddenly changed to smaller title, probably in a recent update. I'm experience this issue with UICollectionViewController
even though to confirm, I add the following code to the viewDidLoad
method.
self.navigationController?.navigationBar.prefersLargeTitles = true
self.navigationItem.largeTitleDisplayMode = .always;
Any leads appreciated! :)
Upvotes: 5
Views: 2493
Reputation: 492
I referred to iOS 11 large-title navigation bar not collapsing and although Apple has resolved the OPs issue, they introduced a new bug wherein if you set prefersLargeTitle
and c
via code, it results in large titles being displayed only when you manually scroll up.
Fix:
largeTitleDisplayMode
via storyboardlargeTitleDisplayMode
as "Automatic" via storyboardUpvotes: 4