Skip to content

Commit

Permalink
Merge pull request #16 from MetalheadSanya/fix_appearance
Browse files Browse the repository at this point in the history
Fix modal layout error on iOS < 11.
  • Loading branch information
MetalheadSanya authored Sep 21, 2018
2 parents 5666ced + a77cfd4 commit 1fb1062
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 1fb1062

Please sign in to comment.