Add seconds component to SwiftUI DatePicker
Originator: | ZekeKSnider | ||
Number: | rdar://FB9022653 | Date Originated: | 2/27/2021 |
Status: | Open | Resolved: | |
Product: | SwiftUI Framework | Product Version: | macOS 11.2.1 |
Classification: | Suggestion | Reproducible: |
SwiftUI’s DatePicker currently only allows `date`, and `hourAndMinute` components via DatePickerComponents (https://developer.apple.com/documentation/swiftui/datepickercomponents). It would be advantageous to also allow an `hourMinuteAndSecond` component, for feature parity with NSDatePicker’s elementFlags (https://developer.apple.com/documentation/appkit/nsdatepicker/elementflags). Currently I need to wrap the DatePicker with another text field to allow for users to input seconds. Adding a seconds components to the DatePicker would make this much easier.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!