I have this piece of code in Swift:
var password = "Meet me in St. Louis" for character in password { if character == "e" { print("found an e!") } else { } }
which produces the following error: value of type 'String' has no member 'Generator' in Swift in line: for character in password
I tried to find a possible error on the Internet, but I can’t (plus I'm new to Swift and try to navigate my own languages).
Any help would be greatly appreciated (plus a brief explanation of what I am missing if possible)
Theok source share