I created a UISearchController in a table view controller. I segue to this table view controller using a push segue from another view controller. I want the keyboard to show up
Besides doing what the other users suggested, I also did the following, and it worked:
searchController.definesPresentationContext = true