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 Weather App Modeling Forecast Data An Icon Enum

Detective Dark
PLUS
Detective Dark
Courses Plus Student 591 Points

why I don't see the icon,

for example: case .clearDay: return ..(here I try to write clear-day), but nothing appears?

Can you display your code? It will help us help you.

Detective Dark
Detective Dark
Courses Plus Student 591 Points

extension WeatherIcon { var image: UIImage { switch self { case .clearDay: return //for example Here after return it should be: clean-day With icon, but it's nothing appears ! case .clearNight: return case .rain: return case .snow: return case .sleet: return case .wind: return case .fog: return case .cloudy: return case .partlyCloudyDay: return case .partlyCloudyNight: return case .default: return } } }

1 Answer

Emin Grbo
Emin Grbo
13,092 Points

Did you download the source files ?