Skip to content

Instantly share code, notes, and snippets.

@iosdevie
Created May 29, 2021 19:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save iosdevie/632fb2d273630800263196128b91b323 to your computer and use it in GitHub Desktop.
let search = UISearchController(searchResultsController: nil)
search.obscuresBackgroundDuringPresentation = false
search.searchBar.placeholder = "Type something here..."
search.searchBar.scopeButtonTitles = ["Title", "Genre", "Rating", "Actor"]
navigationItem.searchController = search
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment