title: Seconds on UIDatePicker (.countDownTimer)
body: <p>How do I add a seconds column to the <code>UIDatePicker</code>?</p>
  <p>I am currently displaying this:</p>
  <p><a href="https://i.stack.imgur.com/VL6CF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VL6CF.png" alt="UIDatePicker" /></a></p>
  <p>With this <code>UIViewRepresentable</code> in SwiftUI</p>
  <pre class="lang-swift prettyprint-override"><code>struct DurationPicker: UIViewRepresentable {
      @Binding var duration: TimeInterval
  
      func makeUIView(context: Context) -&gt; UIDatePicker {
          let datePicker = UIDatePicker()
          datePicker.datePickerMode = .countDownTimer
          datePicker.addTarget(context.coordinator, action: #selector(Coordinator.updateDuration), for: .valueChanged)
          return datePicker
      }
  
      func updateUIView(_ datePicker: UIDatePicker, context: Context) {
          datePicker.countDownDuration = duration
      }
  
      func makeCoordinator() -&gt; Coordinator {
          Coordinator(self)
      }
  
      class Coordinator: NSObject {
          let parent: DurationPicker
  
          init(_ parent: DurationPicker) {
              self.parent = parent
          }
  
          @objc func updateDuration(datePicker: UIDatePicker) {
              parent.duration = datePicker.countDownDuration
          }
      }
  }
  </code></pre>
  <p>Here is my view code for reference</p>
  <pre class="lang-swift prettyprint-override"><code>struct ContentView: View {
     
      @Binding var interval:TimeInterval
      
      init( interval: Binding&lt;TimeInterval&gt; = .constant(0) ) {
        _interval = interval
      }
      
      var body: some View {
          
          NavigationView {
              VStack {
                  Text(&quot;Hello, world!&quot;)
                      .padding()
  
                  DurationPicker(duration: $interval)
                  
                  NavigationLink(destination: DetailView()) {
                      Text(&quot;Show Detail View&quot;)
                  }
              }
          }
      }
  }
  </code></pre>
  <p>I can't figure out how I might go about adding a seconds column, even though the official clock app on iOS displays one.</p>