Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change the font of a DatePicker

Tags:

xcode

swift

I've been searching for days and I can not see how can i change the font and size of a Datepicker control.

I can change the color by:

datePicker.tintColor = UIColor.blue

But I can not find how to change the font and its size.

like image 495
Shadros Avatar asked Nov 26 '22 19:11

Shadros


1 Answers

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.

like image 171
Abhirajsinh Thakore Avatar answered Jun 29 '23 02:06

Abhirajsinh Thakore