From a77cfd4edf3e4256d0cdb42f92233a895d563c4b Mon Sep 17 00:00:00 2001 From: zalutskii Date: Fri, 21 Sep 2018 17:40:36 +0300 Subject: [PATCH] Fix modal layout error on iOS < 11. --- .../Tokenization/View/TokenizationViewController.swift | 7 ------- 1 file changed, 7 deletions(-) diff --git a/YandexCheckoutPayments/Modules/Tokenization/View/TokenizationViewController.swift b/YandexCheckoutPayments/Modules/Tokenization/View/TokenizationViewController.swift index c68c1a11..5fbd45ef 100644 --- a/YandexCheckoutPayments/Modules/Tokenization/View/TokenizationViewController.swift +++ b/YandexCheckoutPayments/Modules/Tokenization/View/TokenizationViewController.swift @@ -298,13 +298,6 @@ class TokenizationViewController: UIViewController { NSLayoutConstraint.activate(modalTemplateConstraints) modalTemplate.view.layoutIfNeeded() - let constraints = [ - modalTemplate.view.leading.constraint(equalTo: vc.view.leading), - modalTemplate.view.trailing.constraint(equalTo: vc.view.trailing), - modalTemplate.view.top.constraint(equalTo: vc.view.top), - modalTemplate.view.bottom.constraint(equalTo: vc.view.bottom), - ] - NSLayoutConstraint.activate(constraints) modalTemplate.didMove(toParentViewController: self) vc.didMove(toParentViewController: modalTemplate)