If I convert code with NSSet, it is not correctly translated to Swift Set. See example:
https://swiftify.me/uphuxa
I would expect something more in line with:
func test() -> Bool {
var test = Set<String>()
test.insert("test")
return test.contains("test")
}