Xamarin.Forms
Xamarin.Forms copied to clipboard
[Bug] iOS DatePicker with UIDatePickerStyle.Inline missing month information
Description
When changing the presentation of the DatePicker to UIDatePickerStyle.Inline on iOS the presentation is not sized correctly and cuts of the month and Year info
Steps to Reproduce
- custom renderer with UIDatePickerStyle.Inline
- open Picker
Expected Behavior
showing correct inline calendar with month and year info
Actual Behavior
only showing days with a fragment of the top info
Basic Information
- Version with issue: 5.0
- Last known good version: none
- Platform Target Frameworks:
- iOS: 14.x
- NuGet Packages:
- Affected Devices: all iOS
Screenshots
Related issue: #11963
Hi, @mos379 - thanks for submitting this issue! Have you tried running on other versions of iOS? If it looks different, would you be able to share relevant screenshots?
Also, if you could share your project or a sample project reproducing this issue, that would be incredibly helpful in helping us to better understand the issue. Thank you! :)
I attached the sample project. It is the basic template from Visual studio where I added a datepicker in the mainPage and added a custom renderer wfor setting up the inline mode for the picker.
I'm currently not able to test on a different OS version PickerIssue.zip
I came across the same issue the day I updated iOS app to Xamarin.Forms 5.0.0.1874. Build 5.0.0.1874 'forced' the UIDatePickerStyle.Automatic, which is same as .Compact. The .Automatic look and feel is quite ugly, and confusing for the end user. I implement a Custom renderer for unrelated Date issue #13366, so I tried the .Inline style - not usable.
Xamarin.Forms 5.0.0.1931'forces' UIDatePickerStyle.Wheels. My best guess, it was an awkward workaround the unsightly
UIDatePickerStyle.Compact. Since I use a CustomRenderer for the DatePicker anyway, I'd prefer the .Inline style work as expected.
I currently settled for .Automatic as more functional than .Wheels . It took Apple a while to figure out end users need to know the Day of Week when selecting. Wheels doesn't show Day of Week, besides being cumbersome to use.
@mos379 thanks for the sample and @mikebikerider thanks for sharing! I'm able to reproduce the behavior you're experiencing
Hi all,
I am also experiencing this. Any workaround for the moment? With a renderer of some sort.
Thank you very much
@rachelkang any update on this issue?
Any update so far?. I also experiencing the same. Thanks to @mikebikerider , by using .automatic style , can solve this issue, but the .automatic behaviour was not what i expected.
Any Update on this issue? I also facing same issue in .inline style.
I am also facing the same issue in the .inline style But I fixed it
https://www.linkedin.com/posts/sohel-memon-46a85a235_xamarin-xamarinforms-xamarindeveloper-activity-7048689504664043520-dN5n?utm_source=share&utm_medium=member_desktop
@mikebikerider @jsuarezruiz @rachelkang @nagurbee @gil-rodrigues @Alhaadi-IDB @mos379
But I fixed it
Just posting a link where there is a picture does not help @Sohel3798 ! How did you fix it?