1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-09-28 03:57:43 +02:00

remove datepicker style workaround (#1768)

This commit is contained in:
Jake Fink 2022-02-11 12:23:51 -05:00 committed by GitHub
parent 972755c725
commit 59ed76d956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,19 +23,6 @@ namespace Bit.iOS.Core.Renderers
{ {
Control.Text = element.PlaceHolder; Control.Text = element.PlaceHolder;
} }
// force use of wheel picker on iOS 14+
// TODO remove this when we upgrade to X.F 5 SR-1
// https://github.com/xamarin/Xamarin.Forms/issues/12258#issuecomment-700168665
try
{
if (UIDevice.CurrentDevice.CheckSystemVersion(13, 2))
{
var picker = (UIDatePicker)Control.InputView;
picker.PreferredDatePickerStyle = UIDatePickerStyle.Wheels;
}
}
catch { }
} }
} }