Skip to content

Commit

Permalink
Merge pull request #73 from prolificinteractive/bugfix/iPhoneX_layout…
Browse files Browse the repository at this point in the history
…_support

Update bottom constraint so menu is flush with bottom of iPhoneX
  • Loading branch information
ghvg1313 authored Jan 23, 2018
2 parents 232a50a + 91ff26f commit ee6c767
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ internal final class DebugViewController: UIViewController {
relatedBy: .equal, toItem: view, attribute: .top, multiplier: 1.0, constant: 0.0)
let leadingConstraint = NSLayoutConstraint(item: tableView, attribute: .leading,
relatedBy: .equal, toItem: view, attribute: .leading, multiplier: 1.0, constant: 0.0)
let trailingConstraint = NSLayoutConstraint(item: tableView,
attribute: .trailing, relatedBy: .equal, toItem: view, attribute: .trailing, multiplier: 1.0, constant: 0.0)
let trailingConstraint = NSLayoutConstraint(item: tableView, attribute: .trailing,
relatedBy: .equal, toItem: view, attribute: .trailing, multiplier: 1.0, constant: 0.0)
let bottomConstraint = NSLayoutConstraint(item: tableView, attribute: .bottom,
relatedBy: .equal, toItem: bottomLayoutGuide, attribute: .top, multiplier: 1.0, constant: 0.0)
relatedBy: .equal, toItem: view, attribute: .bottom, multiplier: 1.0, constant: 0.0)

view.addConstraints([topConstraint, leadingConstraint, trailingConstraint, bottomConstraint])

Expand Down

0 comments on commit ee6c767

Please sign in to comment.