Home > AI > IOS > SwiftUI >

(View)DatePicker

struct ContentView: View {
    @State private var date = Date()

    var body: some View {
        VStack {
            DatePicker(
                    "Start Date",
                    selection: $date,
                    displayedComponents: [.date]
                )
        }
  

Leave a Reply