Added Objective-C version
Added Swift version