For an array, you define the type of components with
let myArray: [Int] = [1, 2, 3]
for sets, syntax is a bit different, it uses <> instead of [] for type declaration (don't know why).
So that means:
requestedComponents is a set which elements are of type Calendar.Component.
What is confusing is that the set is later built using []…
For an array, it would have been:
let request : [Calendar.Component] = [
.year,
.month,
.day,
.hour,
.minute,
.second
]
But the API you use requests a Set.
Reference: https://docs.swift.org/swift-book/LanguageGuide/CollectionTypes.html