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 an Interactive Story App with Swift 2 Creating a Story Creating a Story

Build an interactive story app swift 2 Quiz question

In the quiz for Build an Interactive Story App Swift 2, there is a question that asks you to fill in the blanks. "An optional is a(n)______ under the hood with a_____ and_____ case." I can't get this right even after reviewing the previous 5 videos. Can someone tell me what the answer is, please?

3 Answers

An optional is a(n) enum under the hood with a None and Some case.

Ahhh...! Thank you, jcorum..! I thought that was too specific to one particular enum and so didn't get it. Thanks.

William Timmons
William Timmons
4,975 Points

I struggled with this one as well. I found this page in the swift standard library.

https://developer.apple.com/reference/swift/optional

It explains the none and some cases.

Happy Coding.