This used to work in Xcode 6: Beta 5. Now I\'m getting a compilation error in Beta 6.
for aCharacter: Character in aString { var str: String = \"\" v
According to Swift 4 Documentation , You can append a Character value to a String variable with the String type’s append() method:
var welcome = "hello there" let exclamationMark: Character = "!" welcome.append(exclamationMark) // welcome now equals "hello there!"