diff --git a/AlphaWallet/Accounts/ViewControllers/AccountsViewController.swift b/AlphaWallet/Accounts/ViewControllers/AccountsViewController.swift index a118d7d85..18f009ac8 100644 --- a/AlphaWallet/Accounts/ViewControllers/AccountsViewController.swift +++ b/AlphaWallet/Accounts/ViewControllers/AccountsViewController.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)) } diff --git a/AlphaWallet/Settings/ViewControllers/EnabledServersViewController.swift b/AlphaWallet/Settings/ViewControllers/EnabledServersViewController.swift index 1a96eb82c..ce17d2823 100644 --- a/AlphaWallet/Settings/ViewControllers/EnabledServersViewController.swift +++ b/AlphaWallet/Settings/ViewControllers/EnabledServersViewController.swift @@ -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)) } diff --git a/AlphaWallet/Settings/ViewControllers/LocalesViewController.swift b/AlphaWallet/Settings/ViewControllers/LocalesViewController.swift index 2d1c4d360..acbc3afdc 100644 --- a/AlphaWallet/Settings/ViewControllers/LocalesViewController.swift +++ b/AlphaWallet/Settings/ViewControllers/LocalesViewController.swift @@ -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)) }