Answers for "replace the occurrence of a string in swift"

1

how to replace certain characters in string swift

let aString = "This is my string"
let newString = aString.replacingOccurrences(of: " ", with: "+", options: .literal, range: nil)
Posted by: Guest on May-30-2020

Code answers related to "replace the occurrence of a string in swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language