There are various ways to persist data in the Apple ecosystem. They range from simple to complex. In this post, learn how easy it is to use App Groups and NSUserDefaults to share data between Apple Watch WatchKit and iPhone iOS using Swift.
CocoaPods are the de facto way of sharing and distributing iOS and OS X code. It manages third-party dependencies in a easy, fast, and safe way. There are thousands of CocoaPods available, but almost all of them are in Objective-C. Today I’d like to show you how to create a CocoaPods in Swift.
Are you rocking Swift yet? Now is time to share your code across the whole project for maximum reusability. This becomes even especially essential when creating Apple Watch apps since sharing code between the watch and the phone is a natural occurrence. In this post, I will show you how to create a framework in Swift to do this.