I am trying to replace all apostrophe (') characters in a string with another character. I am running this code:
someString.replacingOccurrences(of: apost, with: "a")
I have tried to let apost equal the following:
apost = "\'"
apost = #"'"#
apost = "'"
None of them have removed the apostrophe from someString.
Please let me know if there is a way to get Swift to replace apostrophe's. Thank you.