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

"Some" with Optionals in Swift

Hello,

I am currently learning Optionals in Swift and it seems that they are used to avoid having the word "some" appear. Problem is never does the word "some" appear for me using Xcode even though it does in the video.

My code appears to be correct so is there something I am missing or has Xcode been updated to no longer have this?

Thank you!

1 Answer

If you're using the latest update of Xcode, there are several changes in it that no longer match the video. This might be one of them. Does the code compile and run?

Please post the code here if you're still having problems.

Christine,

The code continues to work properly, but the instructor says how we need to use ! because otherwise it results in some. This does not seem to be the case however since I do not see it with my Xcode. Just makes me slightly confused as optionals are already tough for me to understand =P