Como verificar se algo está em um conjunto em Swift

let foo: Set = [1]
foo.contains(1) // true
Defiant Dog