add a swift-based copy.

and here is a [demo](https://github.com/demon1105/PinterestSwift).