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