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

Henry Moran
Henry Moran
10,516 Points

ELI5: When to use Enums vs Struct vs Class?

Hello all

I'm having a hard time understanding when is the appropriate time to use each type while creating applications in Swift.

I've been going through the initial course but it's been hard wrapping my head around when to use these concepts.

Can someone break it down to me in a way that would be more applicable in the real world?

Thanks in advance. ??

1 Answer

Henry Moran
Henry Moran
10,516 Points

I read this article last night but it wasn't clear. Will read the article you shared, thanks!