Quiero agregar un banner a la barra de navegación, pero aumentando su altura. Quiero copiar el diseño y el comportamiento de la página de un artista en la aplicación Apple Music:

Se comporta como lo haría un título grande normal, excepto que se ha movido hacia abajo, tiene un UIImageView pegajoso detrás y devuelve su fondo cuando el usuario se desplaza hacia abajo lo suficiente. Puede iniciar Apple Music, buscar un artista e ir a su página para probarlo usted mismo.
Probé un montón de cosas como configurar el marco en UINavigationBarLargeTitleView y el código de esta respuesta: https://stackoverflow.com/a/49326161/5544222
Ya conseguí UINavigationBarLargeTitleView y su UILabel usando el siguiente código:
func setLargeTitleHeight() { if let largeTitleView = self.getLargeTitleView() { if let largeTitleLabel = self.getLargeTitleLabel(largeTitleView: largeTitleView) { // Set largeTitleView height. } } } func getLargeTitleView() -> UIView? { for subview in self.navigationBar.subviews { if NSStringFromClass(subview.classForCoder).contains("UINavigationBarLargeTitleView") { return subview } } return nil } func getLargeTitleLabel(largeTitleView: UIView) -> UILabel? { for subview in largeTitleView.subviews { if subview.isMember(of: UILabel.self) { return (subview as! UILabel) } } return nil }Ponga inicialmente una vista con imagen y etiqueta y botón de reproducción. Luego borre la barra de navegación, mostrará la imagen debajo de ella al
self.navigationController!.navigationBar.setBackgroundImage(UIImage(), for: .default) self.navigationController!.navigationBar.shadowImage = UIImage() self.navigationController!.navigationBar.isTranslucent = truemás tarde, cuando se desplaza hacia arriba, debe manejarlo manualmente y nuevamente mostrar la navegación con el título.