Add seconds component to SwiftUI DatePicker

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 ( It would be advantageous to also allow an `hourMinuteAndSecond` component, for feature parity with NSDatePicker’s 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.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at 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!