Swift read one character at a time from String text


import UIKit

let myString = "FROMAGERIE BAECHLER"
for char in myString {
    print("Found character: \(char)")
}

myString.map {
   print("Found character using Map: \($0)")
}

No comments:

Post a Comment

NO JUNK, Please try to keep this clean and related to the topic at hand.
Comments are for users to ask questions, collaborate or improve on existing.