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:
parent
972755c725
commit
59ed76d956
@ -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 { }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user