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 Swift Enums and Structs Enums What is an Enum?

Tim McEwan
Tim McEwan
19,537 Points

i am getting tons of errors with this enums course does it need to be updated.

i am getting tons of errors with this enums course does it need to be updated.

Chris Shaw
Chris Shaw
26,676 Points

Hi timmcewan2,

Could you please post the code you currently have as without that it's impossible to know what's going wrong.

https://teamtreehouse.com/forum/posting-code-to-the-forum

If you are using Xcode 7 beta, then the errors could be from using swift 1.2 syntax as in the course videos instead of the updated 2.0 swift syntax, which has several changes and deviations from the old v1.2. For example, println is now simply print. Using println would cause an error.

1 Answer

Tim McEwan
Tim McEwan
19,537 Points

I figured it out like the next day thanks i was putting an = sign after declaring my enum. Newbie here lol