From 2d60d0d27ab709bdb98dd0b655eb5400df10e563 Mon Sep 17 00:00:00 2001 From: Alexander Boriskov Date: Thu, 19 Dec 2019 17:32:59 +0300 Subject: [PATCH] [iOS] Fixed topAnchor constraint in PhotosOverlayView https://jira.mail.ru/browse/MAPSME-12754 --- .../Content/Gallery/Photos/PhotosOverlayView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iphone/Maps/UI/PlacePage/PlacePageLayout/Content/Gallery/Photos/PhotosOverlayView.swift b/iphone/Maps/UI/PlacePage/PlacePageLayout/Content/Gallery/Photos/PhotosOverlayView.swift index 44fcdabad2..dd95959b03 100644 --- a/iphone/Maps/UI/PlacePage/PlacePageLayout/Content/Gallery/Photos/PhotosOverlayView.swift +++ b/iphone/Maps/UI/PlacePage/PlacePageLayout/Content/Gallery/Photos/PhotosOverlayView.swift @@ -52,7 +52,7 @@ final class PhotosOverlayView: UIView { navigationBar.items = [navigationItem] addSubview(navigationBar) - navigationBar.topAnchor.constraint(equalTo: self.topAnchor).isActive = true + navigationBar.topAnchor.constraint(equalTo: self.safeAreaLayoutGuide.topAnchor).isActive = true navigationBar.widthAnchor.constraint(equalTo: self.widthAnchor).isActive = true navigationBar.centerXAnchor.constraint(equalTo: self.centerXAnchor).isActive = true