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 Build a Vending Machine App in Swift Loading Data From a Resource Creating an Inventory

Bankole Abawonse
Bankole Abawonse
9,021 Points

Mistake or Confused? Enum vendingSelection

Why make all vending machines implement vendingSelection when they won't all be dispensing food?

eberhapa
eberhapa
51,495 Points

Like the name is saying, it's a Selection. It doesn't matter if its food or something else. In the course it's also not just food.