Is there a way to automatically escape characters in Swift?
var myString = someMagicWord("#%"$@\/")
In c#, someMagicWord = @
In Android studio you can paste your weird string and the ide will automatically escape charecters for you.
Adding @zaph's example: There is a file with characters such as newline "\n", tab "\t", etc. Open the file, select all, copy, go to Xcode and paste inside a string statement such as @"pasted_code_here". The OP wants these characters escaped automatically to something like: @"\n\t"