Fix ui minor issue (#676)
This commit is contained in:
parent
a43f2b017c
commit
b0a971507f
2 changed files with 46 additions and 41 deletions
|
|
@ -133,6 +133,7 @@ class PasswordNavigationViewController: UIViewController {
|
|||
configureTableViewDataSource(in: dir, isShowFolder: Defaults.isShowFolderOn)
|
||||
tableView.addGestureRecognizer(gestureRecognizer)
|
||||
tableView.delegate = self
|
||||
tableView.layoutIfNeeded()
|
||||
tableView.contentInset.top = 8
|
||||
let atribbutedTitle = "LastSynced".localize() + ": \(PasswordStore.shared.lastSyncedTimeString)"
|
||||
refreshControl.attributedTitle = NSAttributedString(string: atribbutedTitle)
|
||||
|
|
@ -154,6 +155,9 @@ class PasswordNavigationViewController: UIViewController {
|
|||
guard let tabBarItem = navigationController?.tabBarItem else {
|
||||
return
|
||||
}
|
||||
if #available(iOS 15.0, *) {
|
||||
tabBarItem.scrollEdgeAppearance = tabBarItem.standardAppearance
|
||||
}
|
||||
|
||||
let numberOfLocalCommits = PasswordStore.shared.numberOfLocalCommits
|
||||
if numberOfLocalCommits != 0 {
|
||||
|
|
@ -408,6 +412,7 @@ extension PasswordNavigationViewController {
|
|||
|
||||
func resetViews() {
|
||||
configureTableView(in: parentPasswordEntity)
|
||||
tableView.layoutIfNeeded()
|
||||
tableView.reloadData()
|
||||
configureNavigationItem()
|
||||
configureTabBarItem()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue