Skip to content

Commit

Permalink
Updates Safe Area Top Constraint value
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbartisro authored Oct 27, 2018
1 parent 4e21dee commit ed81e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HDAugmentedReality/Classes/ARViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ open class ARViewController: UIViewController, ARTrackingManagerDelegate
if #available(iOS 11, *) {
let guide = view.safeAreaLayoutGuide
NSLayoutConstraint.activate([
closeButton.topAnchor.constraint(equalTo: guide.topAnchor, constant: 5),
closeButton.topAnchor.constraint(equalTo: guide.topAnchor, constant: 0),
closeButton.rightAnchor.constraint(equalTo: guide.rightAnchor, constant: -5)
])

Expand Down

0 comments on commit ed81e1b

Please sign in to comment.