This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I have a 3x3 grid of buttons in a outlet collection.
All buttons must start with no text in them.
I need to make it so that when any button is tapped once, an "X" appears in that button.
when the button is tapped again, an "O"
if tapped again the cycle of taps repeats.
what the simplest code to put in the button function call to make this happen
I have already created the outlet collection and connected all the buttons, I just can't figure out how to make the logic for the button functionality. please help its due soon
Subreddit
Post Details
- Posted
- 11 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/swift/comme...