Sorry I thought you had in your mind it was being reviewed.
I would still check your submission because it will most likely be something you need to fix or attend to.
Take it from me they don’t make it easy or obvious.
Post
Replies
Boosts
Views
Activity
Noted thank you. I missed that one! (hopefully the only one!)
Found this which should open up a whole new world of learning!
https://google.github.io/swift/
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.
I don’t understand why the answers are about structs versus enums versus…….
when my question was about reformatting the code into chunks and in line?
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?