xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

[iOS] Date picker does not appear to view in iOS 14 simulator #12580

Closed Sivaraman761 closed 3 years ago

Sivaraman761 commented 3 years ago

Description

Date picker does not appear to view in iOS 14 simulator. I have written the custom render for DatePicker. It is working fine in before and the earlier version of iOS but it is breaking from iOS14.

Steps to Reproduce

  1. Run the sample.
  2. Tap the Date picker (Blue Color)
  3. See the DatePicker View does not come to the view.
  4. it is working fine in before iOS 14.

Expected Behavior

The DatePicker need to come to view when we edit the Date.

Actual Behavior

The DatePicker does not come to view when we edit the Date.

Basic Information

Screenshots

iOS 13.4 iOS 13 2

iOS 14 iOS 14

Reproduction Link

DatePickerTest.zip

rmarinho commented 3 years ago

Hey, this doesn't seem to be related with Forms you need to update your custom renderer to iOS14.

you can add this or cehck or code on 4.8.0

 this.picker = new UIDatePicker { Mode = UIDatePickerMode.Date };
 if (UIDevice.CurrentDevice.CheckSystemVersion(13, 0))
 {
         this.picker.PreferredDatePickerStyle = UIKit.UIDatePickerStyle.Wheels;
 }