Skip to content

Instantly share code, notes, and snippets.

Created May 29, 2021 19:25
What would you like to do?
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