You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have DatePicker inside Scroll View (Table View for example) you can’t scroll down datepicker (to select time/date), because instead of datepicker’s scrolling, view will be dragged down.
Temporary solution is only to set draggable = false.
The text was updated successfully, but these errors were encountered:
I have been able to work around this, it is not the best solution but if it is a must that you have a draggable card with date picker you can use it.
create extension for UIView and override touchesbegan with the following code.
override open func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { super.touchesBegan(touches, with: event) if let touch = touches.first { if touch.view != nil && String(describing: touch.view!.classForCoder) == "UIPickerTableViewWrapperCell" { NotificationCenter.default.post(name: NSNotification.Name(rawValue: ViewNotifcations.datePickerTouchesBegan.rawValue), object: nil) } else { NotificationCenter.default.post(name: NSNotification.Name(rawValue: ViewNotifcations.datePickerTouchesEnded.rawValue), object: nil) } } }
and add listen to those 2 notification and allow the draggable action when it is not "UIPickerTableViewWrapperCell" and disable it when user touch "UIPickerTableViewWrapperCell".
so far this works fine for me. again not the best solution.
If you have DatePicker inside Scroll View (Table View for example) you can’t scroll down datepicker (to select time/date), because instead of datepicker’s scrolling, view will be dragged down.
Temporary solution is only to set
draggable = false
.The text was updated successfully, but these errors were encountered: