Hi, is there any information on how to implement such multiline large titles like in AppStore? I have implemented my own solution for multiline large title, but for me it's more preferable to use standard UIKit solution, which is implemented in AppStore app.
Multiline Large title
Do you mean the navigation title ?how to implement such multiline large titles like in AppStore
Have a look here for a detailed solution:
https://stackoverflow.com/questions/47901318/how-to-set-multi-line-large-title-in-navigation-bar-new-feature-of-ios-11
The above solution doesnt work in Xcode 12.5
Are any updates to this question? I'm struggling to find a solution too
Try this
- Create a custom
UINavigationController
- Add the protocol
UINavigationBarDelegate
to the class definition - Override the function
navigationBar(_:shouldPush:)
- Activate two lines mode using hidden variable
item.setValue(true, forKey: "__largeTitleTwoLineMode")
- Make
navigationController.navigationBar.prefersLargeTitles = true