Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift replace newlines with space

let myString = "This 
 is a st	ri
ng"
let trimmedString = myString.components(separatedBy: .whitespacesAndNewlines).joined()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #swift #replace #newlines #space
ADD COMMENT
Topic
Name
2+1 =