DateTimePicker

public struct DateTimePicker
extension DateTimePicker: View
extension DateTimePicker: _ViewEmptyChecking

DateTimePicker provides a title and value label with Fiori styling and a DatePicker.

Usage

@State var selection: Date = .init(timeIntervalSince1970: 0.0)
@State var isRequired = false
@State var showsErrorMessage = false

DateTimePicker(title: "Default", isRequired: self.isRequired, selectedDate: self.$selection)
   .informationView(isPresented: self.$showsErrorMessage, description: AttributedString("The Date should be before December."))
   .informationViewStyle(.informational)