Skip to content

Commit

Permalink
Fix UISearchController crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
kizitonwose committed Feb 12, 2020
1 parent d89a8d8 commit 742cb9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CountryPickerView/CountryPickerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ extension CountryPickerViewController {
let country = isSearchMode ? searchResults[indexPath.row]
: countries[sectionsTitles[indexPath.section]]![indexPath.row]

searchController?.isActive = false
searchController?.dismiss(animated: false, completion: nil)

let completion = {
Expand Down

0 comments on commit 742cb9b

Please sign in to comment.