Swift 5 Otrzymuj bieżący rok
let year = Calendar.current.component(.year, from: Date())
Wicked Wolf
let year = Calendar.current.component(.year, from: Date())