Answers for "how to remove in between space in sentences in swift"

0

swift replace newlines with space

let myString = "This \n is a st\tri\rng"
let trimmedString = myString.components(separatedBy: .whitespacesAndNewlines).joined()
Posted by: Guest on October-22-2020

Code answers related to "how to remove in between space in sentences in swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language