Loop through characters in string

 Problem

I have a String and want to iterate through its characters.



 Recipe


// Initialize the Array
var str = "Hello World"

// Loop through its individual characters

str.characters.forEach {
    print($0)
}

				


 Playground