From 6a488a08a0032fa4c9d5fcac6e8214e8a620a410 Mon Sep 17 00:00:00 2001 From: Kiryl Kaveryn Date: Fri, 23 May 2025 13:58:16 +0400 Subject: [PATCH] [ios] increase search screen top inset from the safe area Signed-off-by: Kiryl Kaveryn --- .../SearchOnMap/Presentation/ModalPresentationStep.swift | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/iphone/Maps/UI/Search/SearchOnMap/Presentation/ModalPresentationStep.swift b/iphone/Maps/UI/Search/SearchOnMap/Presentation/ModalPresentationStep.swift index 09afc1839..c326c3879 100644 --- a/iphone/Maps/UI/Search/SearchOnMap/Presentation/ModalPresentationStep.swift +++ b/iphone/Maps/UI/Search/SearchOnMap/Presentation/ModalPresentationStep.swift @@ -9,9 +9,8 @@ extension ModalPresentationStep { private enum Constants { static let iPadWidth: CGFloat = 350 static let compactHeightOffset: CGFloat = 120 - static let fullScreenHeightFactorPortrait: CGFloat = 0.1 static let halfScreenHeightFactorPortrait: CGFloat = 0.55 - static let landscapeTopInset: CGFloat = 10 + static let topInset: CGFloat = 8 } var upper: ModalPresentationStep { @@ -73,7 +72,7 @@ extension ModalPresentationStep { if isPortraitOrientation { switch self { case .fullScreen: - frame.origin.y = containerSize.height * Constants.fullScreenHeightFactorPortrait + frame.origin.y = safeAreaInsets.top + Constants.topInset case .halfScreen: frame.origin.y = containerSize.height * Constants.halfScreenHeightFactorPortrait case .compact: @@ -86,7 +85,7 @@ extension ModalPresentationStep { frame.origin.x = safeAreaInsets.left switch self { case .fullScreen: - frame.origin.y = Constants.landscapeTopInset + frame.origin.y = Constants.topInset case .halfScreen, .compact: frame.origin.y = containerSize.height - Constants.compactHeightOffset case .hidden: