EnabledServersViewController, AccountsViewController should have a bottom inset when scroll to the bottom for phones with home bar (iPhone X and newer) #2931

pull/3007/head
Vladyslav shepitko 3 years ago
parent 0f54ba8688
commit 0572015734
  1. 5
      AlphaWallet/Accounts/ViewControllers/AccountsViewController.swift
  2. 4
      AlphaWallet/Settings/ViewControllers/EnabledServersViewController.swift
  3. 4
      AlphaWallet/Settings/ViewControllers/LocalesViewController.swift

@ -29,7 +29,8 @@ class AccountsViewController: UIViewController {
self.walletBalanceCoordinator = walletBalanceCoordinator
super.init(nibName: nil, bundle: nil)
view.backgroundColor = Colors.appBackground
roundedBackground.backgroundColor = GroupedTable.Color.background
roundedBackground.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(roundedBackground)
@ -48,7 +49,7 @@ class AccountsViewController: UIViewController {
tableView.leadingAnchor.constraint(equalTo: roundedBackground.leadingAnchor),
tableView.trailingAnchor.constraint(equalTo: roundedBackground.trailingAnchor),
tableView.topAnchor.constraint(equalTo: roundedBackground.topAnchor),
tableView.bottomAnchor.constraint(equalTo: view.bottomAnchor),
tableView.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor),
] + roundedBackground.createConstraintsWithContainer(view: view))
}

@ -42,7 +42,7 @@ class EnabledServersViewController: UIViewController {
self.restartQueue = restartQueue
super.init(nibName: nil, bundle: nil)
view.backgroundColor = GroupedTable.Color.background
roundedBackground.backgroundColor = GroupedTable.Color.background
roundedBackground.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(roundedBackground)
@ -52,7 +52,7 @@ class EnabledServersViewController: UIViewController {
tableView.leadingAnchor.constraint(equalTo: roundedBackground.leadingAnchor),
tableView.trailingAnchor.constraint(equalTo: roundedBackground.trailingAnchor),
tableView.topAnchor.constraint(equalTo: roundedBackground.topAnchor),
tableView.bottomAnchor.constraint(equalTo: view.bottomAnchor),
tableView.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor),
] + roundedBackground.createConstraintsWithContainer(view: view))
}

@ -16,7 +16,7 @@ class LocalesViewController: UIViewController {
init() {
super.init(nibName: nil, bundle: nil)
view.backgroundColor = GroupedTable.Color.background
roundedBackground.backgroundColor = GroupedTable.Color.background
roundedBackground.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(roundedBackground)
@ -33,7 +33,7 @@ class LocalesViewController: UIViewController {
tableView.leadingAnchor.constraint(equalTo: roundedBackground.leadingAnchor),
tableView.trailingAnchor.constraint(equalTo: roundedBackground.trailingAnchor),
tableView.topAnchor.constraint(equalTo: roundedBackground.topAnchor),
tableView.bottomAnchor.constraint(equalTo: view.bottomAnchor),
tableView.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor),
] + roundedBackground.createConstraintsWithContainer(view: view))
}

Loading…
Cancel
Save