aboutsummaryrefslogtreecommitdiff
path: root/iosApp
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-04-13 19:39:42 -0500
committerIván Ávalos <avalos@disroot.org>2022-04-13 19:39:42 -0500
commitad7f1cee19b7383a1293fb5870df7b7eea2fd069 (patch)
treec19755de4fd9494582e030056fd60f50593e7197 /iosApp
parent74bb32cba48a5278add7fb0ed555914633a613d3 (diff)
downloadetbsa-trackermap-mobile-ad7f1cee19b7383a1293fb5870df7b7eea2fd069.tar.gz
etbsa-trackermap-mobile-ad7f1cee19b7383a1293fb5870df7b7eea2fd069.tar.bz2
etbsa-trackermap-mobile-ad7f1cee19b7383a1293fb5870df7b7eea2fd069.zip
- [ios] Set maxDate in date pickers for custom reports
Diffstat (limited to 'iosApp')
-rw-r--r--iosApp/iosApp/Details/Reports/UnitReportsView.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/iosApp/iosApp/Details/Reports/UnitReportsView.swift b/iosApp/iosApp/Details/Reports/UnitReportsView.swift
index 4f4378f..3a81f59 100644
--- a/iosApp/iosApp/Details/Reports/UnitReportsView.swift
+++ b/iosApp/iosApp/Details/Reports/UnitReportsView.swift
@@ -140,11 +140,11 @@ struct UnitReportsView: View {
}
if unitReportsViewModel.periodType == .custom {
- DatePicker(selection: $unitReportsViewModel.fromDate) {
+ DatePicker(selection: $unitReportsViewModel.fromDate, in: ...Date()) {
Text("period-from")
}
- DatePicker(selection: $unitReportsViewModel.toDate) {
+ DatePicker(selection: $unitReportsViewModel.toDate, in: ...Date()) {
Text("period-to")
}
}