> For the complete documentation index, see [llms.txt](https://movile.gitbook.io/ios-for-designers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://movile.gitbook.io/ios-for-designers/code/navigation-bar.md).

# Navigation Bar

The design guidelines for navigation bars should answer most of your questions.

<https://developer.apple.com/ios/human-interface-guidelines/ui-bars/navigation-bars/>

## Customizing the bar

![](https://i.stack.imgur.com/c3Tlq.png)

By default, the title of the navigation bar is a label, but we can actually override it with anything.

For example, to add a search bar to the navigation bar, we can do:

```
searchController = UISearchController()
navigationItem.titleView = searchController.searchBar
```

![](https://i.stack.imgur.com/UamJp.png)
