Fix Edit List Accounts search field being jammed in the corner on iPad

This commit is contained in:
Shadowfacts 2022-11-30 16:53:11 -05:00
parent 2f0acad866
commit db7615d26f
1 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,9 @@ class EditListAccountsViewController: EnhancedTableViewController {
navigationItem.searchController = searchController navigationItem.searchController = searchController
navigationItem.hidesSearchBarWhenScrolling = false navigationItem.hidesSearchBarWhenScrolling = false
if #available(iOS 16.0, *) {
navigationItem.preferredSearchBarPlacement = .stacked
}
navigationItem.rightBarButtonItem = UIBarButtonItem(title: NSLocalizedString("Rename", comment: "rename list button title"), style: .plain, target: self, action: #selector(renameButtonPressed)) navigationItem.rightBarButtonItem = UIBarButtonItem(title: NSLocalizedString("Rename", comment: "rename list button title"), style: .plain, target: self, action: #selector(renameButtonPressed))