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

Keli'i Martin
Keli'i Martin
8,227 Points

Ideas for extending the Stormy app

This is not a question but simply a post to discuss different ideas for extending the Stormy app. The Stormy app is really a slick little weather app, especially after the updated design in this course. I actually use it all the time myself. But, of course, there was some additions that I made to the app to make it more useful for me that I wanted to share with others.

There is, of course, the obvious addition of CoreLocation to the app to get the actual location of the user to pull weather data for. Along with that, using the CLGeocoder class to take the coordinates and find the actual location's name so it can be updated as well.

Once I was able to get those new features working, I wanted to take it a step further and create a Today extension for the app. Nothing too fancy; the weather icon, current temperature, location, and weather summary make for a nice and concise extension to this weather app. I learned quite a deal trying to implement the Today extension, and really it's still a work in progress.

If anyone is interested, I've put my project up on Github (this also gave me a chance to practice using Github after watching the Github Basics course here). Perhaps Pasan will even see it and create a new course on writing app extensions :).

Anyway, I hope this post inspires others to continue learning new things. Pasan's courses on Swift have definitely helped me a great deal in my transition from C++ to the world of mobile development.

Keli'i Martin
Keli'i Martin
8,227 Points

Oh, I forgot to mention one other change I made. One of the updates Pasan made was to use a custom background view so that we could have this nice gradient background instead of just a color. Unfortunately, we were unable to see the white text in Interface Builder because we were not able to see the custom view in IB. But then I remembered something that was added in Xcode 6... IBDesignable! I was able to make the custom background views IBDesignable and see them right in Interface Builder!