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

Unknown identifier.

So I took the extension of Current Weather to move it to ModelViewCurrentWeather (the idea is that because that file is the file that should give a nice format to the information, that is where the image should be given). I have two properties in ModelViewCurrentWeather 1 - is a property of type string that will take "rain" or "snow" from the currentweather type and in the extension I will switch on that propertie and I will add to the second property 2- of type UIImage. The problem arises when I type the name of the image, doesn't auto complete, and when I type the whole thing doesn't recognize it. I have trow away this way of do things because of that error but I still wondering, why swift did that. I hope you can help me :)