Any way to replace characters on Swift String?
Asked 07 September, 2021
Viewed 1.6K times
  • 54
Votes

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?

22 Answer