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 Swift Functions and Optionals Optionals What is an Optional?

Why on my sidebar does it just say "404" and not {some "404"}?

When I type

let culprit = findApt ("404")

on the sidebar it shows "404" instead of {some "404"}

Is there a setting I need to activate or am I just doing something wrong.

3 Answers

Stepan Ulyanin
Stepan Ulyanin
11,318 Points

Hi, in the recent versions on xcode on the side they show the unwrapped values for your convenience

Farid Rasoolzadeh Baghmisheh
PLUS
Farid Rasoolzadeh Baghmisheh
Courses Plus Student 1,650 Points

So do we still have to unwrap the optionals with a ! ourselves in the newer versions?

Yes, you will still need to unwrap it with a bang.

Tony Brackins
Tony Brackins
28,766 Points

"Unwrap it with a bang". Sounds exciting :D