Commit b3a7a9f3 authored by David黄金龙's avatar David黄金龙

处理 一处可能的crash

parent b67e5712
......@@ -177,6 +177,11 @@ extension YHRangeDatePickerView2 {
if let maxDate = maxDate {
return maxDate
}
if let minDate = minDate {
return self.gregorian.date(byAdding: .day, value: 30, to: minDate)!
}
return self.gregorian.date(byAdding: .day, value: 30, to: Date())!
}
......
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