It is pretty simple. I found this video tutorial incredibly useful when I started. It is for Objective-C, but in Swift should be pretty much the same.
Also, the video is from a few years ago, so when it tells you to “make a request to migrate to Cocoapods speco replicas,” just ignore it. As this video appeared, Cocoapods stopped accepting download requests to its specs repository. Now you need to run a command called trunk , which allows Cocoapods to automatically add the specification. You can learn more about it here.
You might also find it helpful to familiarize yourself with some examples of Swift pod specifications, such as this.
source share