So maybe I'm overlooking something, but for two ViewControllers that subclass UIViewController, the prefersLargeTitles behaviour does not work as expected.
When the VC is loaded, the navigation bar is the regular small size, and only after I manually scroll up it will become larger.
For another VC I'm using a UITableViewController and there, everything works fine.
This is my code:
if #available(iOS 11.0, *) {
self.navigationController?.navigationBar.prefersLargeTitles = true
self.navigationItem.largeTitleDisplayMode = .always
self.navigationController?.navigationBar.isTranslucent = false
} else {
/
}
Any help would be greatly appreciated!