File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
WooCommerce/Classes/ViewRelated/ReusableViews/SwiftUI Components Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11import Foundation
22import SwiftUI
33
4- /// View to reselect a custom date range.
4+ /// View to select a custom date range.
55/// Consists of two date pickers laid out vertically.
66///
77struct RangedDatePicker : View {
88
99 @Environment ( \. presentationMode) var presentation
1010
11- /// Closure invoked when the the custom date range has been confirmed.
11+ /// Closure invoked when the custom date range has been confirmed.
1212 ///
1313 var datesSelected : ( ( _ start: Date , _ end: Date ) -> Void ) ?
1414
@@ -56,7 +56,9 @@ struct RangedDatePicker: View {
5656 VStack ( spacing: Layout . titleSpacing) {
5757 Text ( Localization . title)
5858 . headlineStyle ( )
59- Text ( " Dec 1 - Dec 6 " ) // TODO: This should be dynamic
59+
60+ // TODO: Properly format date ranges outside the view
61+ Text ( " \( DateFormatter . monthAndDayFormatter. string ( from: startDate) ) - \( DateFormatter . monthAndDayFormatter. string ( from: endDate) ) " )
6062 . captionStyle ( )
6163 }
6264 }
You can’t perform that action at this time.
0 commit comments