Skip to content

Instantly share code, notes, and snippets.

@Dssdiego
Last active June 2, 2022 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dssdiego/023118658753477ed363f36bc4935f7f to your computer and use it in GitHub Desktop.
Save Dssdiego/023118658753477ed363f36bc4935f7f to your computer and use it in GitHub Desktop.
Makes iOS 11 NavBar with Large Title and Search Bar (like whatsapp)
func setupNavBar() {
navigationController?.navigationBar.prefersLargeTitles = true
let searchController = UISearchController(searchResultsController: nil)
navigationItem.searchController = searchController
}
@grenos
Copy link

grenos commented Mar 29, 2021

Thanks 🙏

@Jamisyed
Copy link

Jamisyed commented Jun 2, 2022

Thanks. 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment