From c885b11710ef90529a42059a0017e1db8b9a4ca7 Mon Sep 17 00:00:00 2001 From: Aleksey Belousov Date: Fri, 24 Jul 2020 14:29:44 +0300 Subject: [PATCH] [iOS] display dates and guests pickers in popvers on iPad --- iphone/Maps/UI/Search/DatePickerViewController.swift | 2 +- iphone/Maps/UI/Search/DatePickerViewController.xib | 6 +++--- iphone/Maps/UI/Search/GuestsPickerViewController.swift | 9 ++++++++- iphone/Maps/UI/Search/MWMSearchManager.mm | 4 ++++ 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/iphone/Maps/UI/Search/DatePickerViewController.swift b/iphone/Maps/UI/Search/DatePickerViewController.swift index 24c9c9485c..040eea3a83 100644 --- a/iphone/Maps/UI/Search/DatePickerViewController.swift +++ b/iphone/Maps/UI/Search/DatePickerViewController.swift @@ -37,7 +37,7 @@ import DatePicker } override var modalPresentationStyle: UIModalPresentationStyle { - get { return .custom } + get { return alternativeSizeClass(iPhone: .custom, iPad: .popover) } set { } } diff --git a/iphone/Maps/UI/Search/DatePickerViewController.xib b/iphone/Maps/UI/Search/DatePickerViewController.xib index 33c018e01e..f9a4db6947 100644 --- a/iphone/Maps/UI/Search/DatePickerViewController.xib +++ b/iphone/Maps/UI/Search/DatePickerViewController.xib @@ -32,7 +32,7 @@ -