Commit db10f22f authored by Grigor Aghabalyan's avatar Grigor Aghabalyan
Browse files

Fix: date picker default value

parent b704ebde
......@@ -15,7 +15,7 @@ class DatePickerViewController: UIViewController {
@IBOutlet weak var datePickerView: UIDatePicker!
// MARK: - RxVariables
var selectedDate: String?
var selectedDate = Date().toString(dateFormat: DateFormat.HoursAndSeconds.rawValue)
private var callback: ((String?) -> ())?
......@@ -47,6 +47,7 @@ class DatePickerViewController: UIViewController {
}
}
@IBAction func okButtonAction(_ sender: UIButton) {
self.dismisView()
callback?(selectedDate)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment