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
append append(c: Character)
IS the right method but your code has two other problems.
The first is that to iterate over the characters of a string you must access the String.characters
property.
The second is that the append method doesn't return anything so you should remove the newStr.
The code then looks like this:
for aCharacter : Character in aString.characters {
var str:String = ""
str.append(aCharacter)
// ... do other stuff
}