No stream for this meetup. They updated the computer in the iLab and the OBS settings were gone. All good though. We managed to have an intimate talk with the five of us developers following along while O’Neil showed us an overview of In-App Purchases, then showed us the cocoapod SwiftyStoreKit.
At the beginning of the talk we discussed Storyboard shortcuts and Chae offered to show us how to do this after the talk. O’Neil sped up the delivery of his talk and we huddled around Chae’s computer at the end so he could show us how to link storyboards within his project.
I think all the developers learned something last night. Next week we’re covering ViewControllers and Segues. There are so many ways to do this and I’m planning to cover as much as possible at the next meetup. Please RSVP if you are interested in attending.
So it happened. My brand new Mac Book Pro 2017 crashed 2 nights ago when I was preparing the code for this meetup on Image Caching Best Practices. Not skipping a beat, I brought out my 2011 Mac Book Air to complete the coding for the meetup.
Unfortunately I was not able to complete the code in the morning before the meetup. So I shared the code that I had for the meetup and prepared an exercise for the meetup members with Exercism.io.
In researching for this meetup I determined that the best way to set up image caching is to use NSCache, Save to Documents, and Alamofire.
The idea is go through this process every time you need to display an image in your apps:
- Check if the image is in NSCache
- Check if the image is in the Documents folder
- Download the image with Alamofire
If you’re interested in going further into the nitty gritty of how this works, you can watch our discussion in the video above.
Once I had finished discussing the code I had prepared for the talk, I switched over to the Raindrops exercise on Exercism.io. I think the developers really enjoyed working on the code problem together. I’m thinking about making this the warm up at future meetups.
Next week O’Neil is going to deliver a talk on SwiftStoreKit to do in-app purchases in your apps. I’m looking forward to hearing his battle-won feedback and best practices next week. Please RSVP if you’re interested in attending.