From 3af9955c680339170a7b64ff59ad9dc891152c83 Mon Sep 17 00:00:00 2001 From: Hwee-Boon Yar Date: Sat, 7 Apr 2018 17:17:27 +0800 Subject: [PATCH] Fix remove additional height for buttons at bottom for transfer ticket flow for iPhone X --- .../TransferTicketsQuantitySelectionViewController.swift | 2 +- .../ViewControllers/TransferTicketsViewController.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Trust/Transfer/ViewControllers/TransferTicketsQuantitySelectionViewController.swift b/Trust/Transfer/ViewControllers/TransferTicketsQuantitySelectionViewController.swift index 02f7b27ef..177a6a4a4 100644 --- a/Trust/Transfer/ViewControllers/TransferTicketsQuantitySelectionViewController.swift +++ b/Trust/Transfer/ViewControllers/TransferTicketsQuantitySelectionViewController.swift @@ -97,7 +97,7 @@ class TransferTicketsQuantitySelectionViewController: UIViewController { footerBar.leadingAnchor.constraint(equalTo: view.leadingAnchor), footerBar.trailingAnchor.constraint(equalTo: view.trailingAnchor), - footerBar.topAnchor.constraint(equalTo: view.layoutGuide.bottomAnchor, constant: -buttonsHeight), + footerBar.heightAnchor.constraint(equalToConstant: buttonsHeight), footerBar.bottomAnchor.constraint(equalTo: view.bottomAnchor), ]) } diff --git a/Trust/Transfer/ViewControllers/TransferTicketsViewController.swift b/Trust/Transfer/ViewControllers/TransferTicketsViewController.swift index 094cc3da6..f97b7e395 100644 --- a/Trust/Transfer/ViewControllers/TransferTicketsViewController.swift +++ b/Trust/Transfer/ViewControllers/TransferTicketsViewController.swift @@ -76,7 +76,7 @@ class TransferTicketsViewController: UIViewController { footerBar.leadingAnchor.constraint(equalTo: view.leadingAnchor), footerBar.trailingAnchor.constraint(equalTo: view.trailingAnchor), - footerBar.topAnchor.constraint(equalTo: view.layoutGuide.bottomAnchor, constant: -buttonsHeight), + footerBar.heightAnchor.constraint(equalToConstant: buttonsHeight), footerBar.bottomAnchor.constraint(equalTo: view.bottomAnchor), ]) }