Remove branches for iOS 12 compatibility

This commit is contained in:
Mingshen Sun 2023-02-04 15:27:37 -08:00
parent 7000834575
commit b09bc7444f
7 changed files with 17 additions and 59 deletions

View file

@ -21,9 +21,7 @@ class PasswordsViewController: UIViewController {
uiSearchController.searchBar.isTranslucent = true
uiSearchController.obscuresBackgroundDuringPresentation = false
uiSearchController.searchBar.sizeToFit()
if #available(iOS 13.0, *) {
uiSearchController.searchBar.searchTextField.clearButtonMode = .whileEditing
}
uiSearchController.searchBar.searchTextField.clearButtonMode = .whileEditing
return uiSearchController
}()