SyntaxFix
Write A Post
Hire A Developer
Questions
For me, the following line used to remove white space.
let result = String(yourString.filter {![" ", "\t", "\n"].contains($0)})