diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2023-04-21 15:20:21 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2023-04-21 15:20:21 +0200 |
| commit | 2df26cc18a2b378ca555b3fbbc370ccb9d058779 (patch) | |
| tree | 991ea20bc127cccfbb36c8957926c7e9763523fe | |
| parent | 7ef94355f9069ca4ccd6f60e45d11b0ba0da5a98 (diff) | |
| parent | c7e8532da735d407a536c65871f5ab529a1bb9d5 (diff) | |
| download | mullvadvpn-2df26cc18a2b378ca555b3fbbc370ccb9d058779.tar.xz mullvadvpn-2df26cc18a2b378ca555b3fbbc370ccb9d058779.zip | |
Merge branch 'remove-negative-margin-for-search-field-ios-129'
| -rw-r--r-- | ios/MullvadVPN/View controllers/SelectLocation/SelectLocationViewController.swift | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ios/MullvadVPN/View controllers/SelectLocation/SelectLocationViewController.swift b/ios/MullvadVPN/View controllers/SelectLocation/SelectLocationViewController.swift index 608aeb5db3..a5c461a222 100644 --- a/ios/MullvadVPN/View controllers/SelectLocation/SelectLocationViewController.swift +++ b/ios/MullvadVPN/View controllers/SelectLocation/SelectLocationViewController.swift @@ -48,12 +48,8 @@ final class SelectLocationViewController: UIViewController { setupTableView() setupSearchBar() - let searchBarTopMargin: CGFloat = splitViewController == nil ? -16 : 0 view.addConstrainedSubviews([searchBar, tableView]) { - searchBar.pinEdges( - .init([.top(searchBarTopMargin), .leading(8), .trailing(8)]), - to: view.safeAreaLayoutGuide - ) + searchBar.pinEdgesToSuperviewMargins(.all().excluding(.bottom)) tableView.pinEdgesToSuperview(.all().excluding(.top)) tableView.topAnchor.constraint(equalTo: searchBar.bottomAnchor) |
