From ed81e1b83d9452ccbfcd9af91ac8711b2b502523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Barti=C8=99?= Date: Sat, 27 Oct 2018 14:16:10 +0300 Subject: [PATCH] Updates Safe Area Top Constraint value --- HDAugmentedReality/Classes/ARViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HDAugmentedReality/Classes/ARViewController.swift b/HDAugmentedReality/Classes/ARViewController.swift index 404a595..9649325 100644 --- a/HDAugmentedReality/Classes/ARViewController.swift +++ b/HDAugmentedReality/Classes/ARViewController.swift @@ -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) ])