r/simpleios • • May 17 '16

[Question] Enum vs Struct

When I look at their syntax they look different, but when I try to think of some of their uses. I cant wrap my head around them. They somehow overlap according to my understanding.

The swift book by apple already explained the difference between Class and Struct. Can anyone tell explain when to use an enum vs a struct ?

2 Upvotes

7 comments sorted by

View all comments

Show parent comment

2

u/flaw600 May 25 '16

Fair enough. I still don't really understand the value of structs, so I think I'll probably generally use classes, but hopefully overtime I'll get the experience of when to use structs vs classes.