With iOS 13 and earlier we could use UIDatePicker as inputView but what now ?
I tried with ios14 and when the textfield is tapped nothing append.
Is it normal ?
I tried with ios14 and when the textfield is tapped nothing append.
Code Block swift var timePicker = UIDatePicker() self.timePicker.preferredDatePickerStyle = UIDatePickerStyle.wheels self.timePicker.datePickerMode = UIDatePicker.Mode.time self.timePicker.minuteInterval = 5 self.startTimeTxtField.inputView = self.timePicker
Is it normal ?
We are aware of this issue. As a workaround for now you can call sizeToFit on the date picker before assigning it as input view, but after configuring the desired style and mode.
It is also worth noting that the desired design for the new styles is to either use the compact style in place in your lists or other designs and the inline style should be shown by making room for it in your actual design. You should no longer use a date picker as input view if you are using the new styles.
It is also worth noting that the desired design for the new styles is to either use the compact style in place in your lists or other designs and the inline style should be shown by making room for it in your actual design. You should no longer use a date picker as input view if you are using the new styles.