         inlineRow.maximumDate = maximumDate
         inlineRow.minuteInterval = minuteInterval
     }
+    
+    func configurePickerStyle(_ cell: DatePickerCell, _ mode: UIDatePicker.Mode = .dateAndTime) {
+        cell.datePicker.datePickerMode = mode
+        if #available(iOS 14.0, *) {
+            cell.datePicker.preferredDatePickerStyle = .inline
+        }
+        else if #available(iOS 13.4, *) {
+            cell.datePicker.preferredDatePickerStyle = .wheels
+        }
+    }
 
 }
 


    open func setupInlineRow(_ inlineRow: TimePickerRow) {
        configureInlineRow(inlineRow)
    }
}



    open func setupInlineRow(_ inlineRow: DatePickerRow) {
        configureInlineRow(inlineRow)
        configurePickerStyle(inlineRow.cell, .date)
    }
}

