Can You Change The Font Size of a UIdatepicker

Can you change the font size of a UIDatePicker?

Unfortunately, no. (Reference here)

An alternative would be to make your own version using UIPickerView

As per the Documentation:

  • Appearance: The appearance of UIDatePicker is not customizable.
  • You should integrate date pickers in your layout using Auto Layout. Although date pickers can be resized, they should be used at their intrinsic content size.*

Change the font of a DatePicker

It is not good to Customise the UIDatePicker

Although it is suggested to use the Native(Default) UIDatePicker of the Swift,

then also if anyone wants you can refer the following list

Following are some of the Customisable Datepicker from GitHub.

  1. https://github.com/squimer/DatePickerDialog-iOS-Swift
  2. https://github.com/itsmeichigo/DateTimePicker
  3. https://github.com/hsylife/SwiftyPickerPopover
  4. https://github.com/EngrAhsanAli/AAPickerView
  5. https://github.com/dillidon/alerts-and-pickers
  6. https://github.com/hughbe/day-date-picker
  7. https://github.com/alikaragoz/AIDatePickerController
  8. https://github.com/CooperRS/RMDateSelectionViewController
  9. https://github.com/zhhlmr/ZHDatePicker
  10. https://github.com/GasimGasimzada/FxDatePicker
  11. https://github.com/anatoliyv/SMDatePicker
  12. https://github.com/MarioIannotta/MIDatePicker

Note: But yes do not Try to customise The appearance of UIDatePicker.As it might make a danger of rejection of your app in
future.

Hope this helps.



Related Topics



Leave a reply



Submit