Friday, November 6, 2020

iOS 14, New Date Style picker

UIDatePicker is an API that has existed since the very early days of the iOS SDK - it goes all the way back to iOS 2.0.


UIDatePicker in iOS 14

UIDatePicker Styles

First things first, the old wheel-styled picker is not actually gone. Instead, UIDatePicker now has a property called datePickerStyle where you can let the system choose the best style with the .automatic style, or you can choose between .compact and .inline - both new to iOS 14 - or .wheel, which is the old style we have known for over a decade.


The .compact Style

The .compact date picker style presents the user as a small UI the user can tap.



references:

https://www.andyibanez.com/posts/new-uidatepicker-ios14/

No comments:

Post a Comment