Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Saad Lulu
Saad Lulu
6,821 Points

Coin Flip application

I made an application using Swift for tossing a Coin. Try it out and please post enhancement to the code. I wish treehouse applied a way to upload files. but for the time being, here is a link to download the file http://www.filedropper.com/coinflip

Saad,

I would recommend you post this on GitHUB It would make is easier for people to view and download.

P.S Congrats on the app!

2 Answers

Nice use of enums :)

Saad Lulu
Saad Lulu
6,821 Points

If anyone can add a small animation or reference a link on how to make the result change couple of times then lands on the final result, just like when you flip a coin, the coin flips couple of times then it lands on the final result.

Check out the Spring project on GitHub using flipY you could create the animation you are looking for.