added handy apis in copicake-swift

first time learning how to make swift package & cocoapod lol