Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit b52d93b

Browse files
committed
fix iOS date picker
1 parent 524366c commit b52d93b

File tree

1 file changed

+2
-0
lines changed
  • widgets-datetime-picker/src/iosMain/kotlin/dev/icerock/moko/widgets/datetimepicker

1 file changed

+2
-0
lines changed

widgets-datetime-picker/src/iosMain/kotlin/dev/icerock/moko/widgets/datetimepicker/ShowDatePickerExt.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import platform.UIKit.UIControlEventTouchUpInside
1919
import platform.UIKit.UIControlStateNormal
2020
import platform.UIKit.UIDatePicker
2121
import platform.UIKit.UIDatePickerMode
22+
import platform.UIKit.UIDatePickerStyle
2223
import platform.UIKit.UIView
2324
import platform.UIKit.addSubview
2425
import platform.UIKit.backgroundColor
@@ -114,6 +115,7 @@ class DatePickerView(
114115
).active = true
115116

116117
val datePicker = UIDatePicker()
118+
datePicker.preferredDatePickerStyle = UIDatePickerStyle.UIDatePickerStyleWheels
117119
datePicker.translatesAutoresizingMaskIntoConstraints = false
118120
datePicker.datePickerMode = UIDatePickerMode.UIDatePickerModeDate
119121
addSubview(datePicker)

0 commit comments

Comments
 (0)