Any way to replace characters on Swift String?
I am looking for a way to replace characters in a Swift String
.
Example: "This is my string"
I would like to replace " " with "+" to get "This+is+my+string".
How can I achieve this?
I am looking for a way to replace characters in a Swift String
.
Example: "This is my string"
I would like to replace " " with "+" to get "This+is+my+string".
How can I achieve this?