Anushk
Anushk

Reputation: 492

Large navigation title bar is hidden by default

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

Answers (1)

Anushk
Anushk

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:

- Check largeTitleDisplayMode via storyboard

- Set largeTitleDisplayMode as "Automatic" via storyboard

- Remove any similar code from your View Controllers

Upvotes: 4

Related Questions