Skip to content

Commit 0ec6f12

Browse files
KM-13141 Integrate search bar with navigation item (#208)
1 parent 3bba167 commit 0ec6f12

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

PIA VPN/UI/Menu/RegionsViewController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ class RegionsViewController: AutolayoutViewController {
152152
searchController.searchResultsUpdater = self
153153
searchController.obscuresBackgroundDuringPresentation = false
154154
searchController.searchBar.placeholder = L10n.Localizable.Region.Search.placeholder
155-
self.tableView.tableHeaderView = self.searchController.searchBar
156-
157-
searchController.hidesNavigationBarDuringPresentation = false
155+
156+
navigationItem.searchController = searchController
157+
definesPresentationContext = true
158158
}
159159

160160
override func viewWillAppear(_ animated: Bool) {

0 commit comments

Comments
 (0)