Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
Replied In
Why does search bar hides abruptly without animation when swiped back to unwind segue (Swift)?
I've the following code inside my viewDidLoad for searchController in both the cases:searchController = UISearchController(searchResultsController: nil)
searchController.searchResultsUpdater = self
searchController.obscuresBackgroundDuringPresentation = false
searchController.searchBar.placeholder = "Search"
searchController.searchBar.becomeFirstResponder()
searchController.searchBar.tintColor = Constants.primaryThemeColor
navigationItem.searchController = searchController
definesPresentationContext = true
navigationItem.hidesSearchBarWhenScrolling = falseI have taken https://www.raywenderlich.com/472-uisearchcontroller-tutorial-getting-started as my reference.