How to add a view on top of the navigation bar?

The iOS navigation bar configuration is quite flexible, as you may already know, you can configure the appearance attributes, such as…