Writing a custom control: iOS 8, Swift and Auto Layout
Here at Coursera, every new line of code we write for iOS is in Swift. As a result, I’ve written a few custom controls lately in Swift using Auto Layout and iOS 8’s new IBDesignable/IBInspectable...
View ArticleSwift-Snippets: A Max Function for Optionals
The other day I needed to compare several values to determine which one was the maximum. Great, there is a max function built into the swift language! One catch, that max function only takes unwrapped...
View ArticleHow to Use iOS UI Testing in Xcode
In Xcode 7, automated UI Testing was finally integrated into the IDE to allow developers to seemlessly run integration testing on top of unit testing. Thankfully, this was also introduced in a standard...
View ArticleXcode UI Testing vs. The UI Automation Instrument
Previously I introduced how to use Xcode UI Testing (UIT) in Xcode 7, but what about the existing UI testing that has been in existence for years via the UI Automation (UIA) Instrument? In this article...
View ArticleAdvanced UI Testing: Strategies, Hidden Gems and Limitations
Previously I’ve introduced using UI Testing and discussed the differences between UI Testing in Xcode and the prior UI Automation Instrument. However, there is a lot more to learn about UI style...
View ArticleHTML Rending in Swift with Dynamic UITableViewCells
I’m a firm believer that native UI is superior to the web view experience on mobile. However, if you want rich-text user generated content support across both web and native platforms a markup language...
View ArticleModular Architecture for iOS in Swift
I spoke at AltConf 2015 about the Modular Architecture we at Coursera use to write our iOS App. This architecture strives to encapsulate and bound our features to reduce complexity and improve...
View Article