I've used this question
How to remove special characters from string in Swift 2?
Which designates which characters to keep in a string, then removes all other characters. The function works great. The line
Set("abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLKMNOPQRSTUVWXYZ1234567890+-*=(),.:!_".characters)
determines what characters to keep. However, when I try to add in the single quote character ('), single quotes are not kept. I tried escaping the single quote with \' and putting it in regularly, but to no avail. I don't believe single quotes need to be escaped in Swift.
Would someone care to enlighten me on this issue?
Thanks!