IOS 11: add other navigation items next to the search bar embedded in the title bar of the navigation.

In iOS 11, we now use

self.navigationItem.searchController = self.searchController 

to insert a search bar as a title for a navigation item. This, however, pushes other navigation elements above the search bar, for example:

Current: navigation bar above the search bar

Without using custom containers or reverting to the old way of customizing the search bar, is it possible to somehow save other navigation items at the same level as the search bar in iOS 11? Like this:

Preferred: nav element next to search bar

+5
source share

Source: https://habr.com/ru/post/1273125/


All Articles