Post

Replies

Boosts

Views

Activity

Comment on .replacingOccurrences(of: "\"", with: "") not working
Tested the above and agree your example works but when applied to a TextField situation i.e. a stray “ or text enclosed in quotes “example text” the quotes are removed. let removeCommasFirstCardFirstWordClue = cards.firstCardFirstWordClue.replacingOccurrences(of: ",", with: "") works in the TextField but, let removeCommasFirstCardFirstWordClue = cards.firstCardFirstWordClue.replacingOccurrences(of: """, with: "") does not work. Maybe I need to find a way to prevent quotes from being entered?
Jan ’23
Comment on Is this bad practice?
So sorry if you thought my comment was directed to you (it wasn’t). Again sorry I didn’t answer the extension question of yours as I was so confused I didn’t realise it was for me. My question is, is it bad practice to take a piece of code and break it up into chunks and format it down one line and also a supplementary question, if code was presented like that, would it compile okay and be acceptable to the App Store for example. Apologies again.
Feb ’23