In this episode, we focus on the analytics API itself. We define a single entry point for analytics and remove some of the string literals at the call site. The resulting API is surprisingly small, intuitive to use, and easy to extend.
Subscribe to Cocoacasts Plus to watch this episode.
Building Type-Safe APIs in Swift
by Bart Jacobs in Programming
2 Creating Events