You can watch this episode by subscribing to Cocoacasts Plus.
Building Type-Safe APIs in Swift
Creating Events
1 | Eliminating Stringly Typed Code 06:31 |
---|---|
2 | Creating Events 08:21 |
3 | Defining Properties 06:22 |
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.
Instant and Unlimited Access
to 500+ Cocoacasts Tutorials
Monthly
$19 / month
Pay Once a Month
30 Day Money Back Guarantee
Yearly
$8.25 / month (billed annually)
Pay Once a Year and Save $129
30 Day Money Back
Guarantee