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?
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: