You can do it this way:
let myString = "so123han"
let alphaChars = myString.unicodeScalars.filter({ CharacterSet.letters.contains($0) }).map({ Character($0) })
3
solved Get letters from string swift
You can do it this way:
let myString = "so123han"
let alphaChars = myString.unicodeScalars.filter({ CharacterSet.letters.contains($0) }).map({ Character($0) })
3
solved Get letters from string swift