1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-25 20:53:25 +00: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

View File

@@ -23,19 +23,6 @@ namespace Bit.iOS.Core.Renderers
{
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 { }
}
}