Finished the SwiftUI Slots App? Post your Screenshot Here!

Slightly belated but here is a screenshot of my attempt of the SwiftUI Slots app! Thanks for another great lesson!

1 Like

Yay, congrats! I just awarded you a new badge. :slight_smile: Keep on going!


Hi!! This is the progress :slight_smile:

Looks good. Well done.

Badge awarded.

1 Like

Well done.

Your code has a lot of blank lines and there are pieces of code that are not indented correctly. Tidying that up will make it much easier for you in the long term.

Remove the blank lines and then select all of your code using the keyboard shortcut Command + A, then re-indent your code using the keyboard shortcut Control + I.

Re-indenting your code will show you the structure correctly so that you can better identify what belongs to what.

Thanks Chris! I had no idea how to do this before, and I tend to edit bracket after bracket debugging creating messy code.
Invaluable tips!

1 Like

@tylvaughan

You might find this useful even though it is 2 years ago.

And this one from Sean Allen which is more recent

1 Like

Gimme Gimme :pleading_face:

1 Like

Yeah man, you’ve got the badge - “Bandit”

Well done. Badge awarded.