Skip to content

Commit

Permalink
Fix build error.
Browse files Browse the repository at this point in the history
  • Loading branch information
kizitonwose committed Jan 12, 2019
1 parent 1e5ce65 commit 03f3a39
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CountryPickerView/CountryPickerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class CountryPickerViewController: UITableViewController {
return dataSource.showOnlyPreferredSection
}

weak var countryPickerView: CountryPickerView! {
internal weak var countryPickerView: CountryPickerView! {
didSet {
dataSource = CountryPickerViewDataSourceInternal(view: countryPickerView)
}
Expand Down Expand Up @@ -240,13 +240,13 @@ extension CountryPickerViewController: UISearchResultsUpdating {

// MARK:- UISearchBarDelegate
extension CountryPickerViewController: UISearchBarDelegate {
func searchBarTextDidBeginEditing(_ searchBar: UISearchBar) {
private func searchBarTextDidBeginEditing(_ searchBar: UISearchBar) {
// Hide the back/left navigationItem button
navigationItem.leftBarButtonItem = nil
navigationItem.hidesBackButton = true
}

func searchBarCancelButtonClicked(_ searchBar: UISearchBar) {
private func searchBarCancelButtonClicked(_ searchBar: UISearchBar) {
// Show the back/left navigationItem button
prepareNavItem()
navigationItem.hidesBackButton = false
Expand All @@ -257,11 +257,11 @@ extension CountryPickerViewController: UISearchBarDelegate {
// MARK:- UISearchControllerDelegate
// Fixes an issue where the search bar goes off screen sometimes.
extension CountryPickerViewController: UISearchControllerDelegate {
func willPresentSearchController(_ searchController: UISearchController) {
private func willPresentSearchController(_ searchController: UISearchController) {
self.navigationController?.navigationBar.isTranslucent = true
}

func willDismissSearchController(_ searchController: UISearchController) {
private func willDismissSearchController(_ searchController: UISearchController) {
self.navigationController?.navigationBar.isTranslucent = false
}
}
Expand Down

0 comments on commit 03f3a39

Please sign in to comment.