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
find below fix for this issue.var isSeachBarAnimationCompleted: Bool = falsefunc didPresentSearchController(_ searchController: UISearchController) { DispatchQueue.main.async(execute: { self.isSeachBarAnimationCompleted = true searchController.searchBar.becomeFirstResponder() }) }func searchBarCancelButtonClicked(_ searchBar: UISearchBar) {guard self.isSeachBarAnimationCompleted else { return } self.isSeachBarAnimationCompleted = false //Do you code here... }Hope this will resolve the issue. 🙂