title: SwiftUI - Date Picker display Year Only
body: <p>Is it possible to use Apple's very own date picker and display just the year only?</p>
  <p>This is my current code:</p>
  <pre><code>  DatePicker(&quot;&quot;, selection: $cameraViewModel.age, displayedComponents: .date)
          .datePickerStyle(CompactDatePickerStyle())
  </code></pre>
  <p>Of course the <code>.displayedComponents</code> would allow me to alter the UI/elements however, there's no call for just the year.</p>
  <p>Thank you. I have searched Stackoverflow, found a thread, but the OP never followed up.</p>