When using the Date Picker Style "compact" from iOS 14 a popup with the calendar is opened, when the user taps on the date. It is possible to trigger this popup without any user interaction?
Trigger popup from UIDatePickerStyle.compact
My hack:
Code Block swift let datePicker = UIDatePicker(frame: CGRect(x: 0, y: 0, width: 50, height: 50)) datePicker.preferredDatePickerStyle = .compact /* Removes labels */ datePicker.subviews.forEach({ $0.subviews.forEach({ $0.removeFromSuperview() }) }) /* Can now use popup from date picker */