Is there a way to have a UIDatePicker show year only?
Just updating the existing answer in this post with Swift 3:
var yearsTillNow : [String] { var years = [String]() for i in (1970..<2018).reversed() { years.append("\(i)") } return years }
Just use this for your UIPickerView datasource.
UIPickerView