add a swift-based copy.
Merge pull request #60 from demon1105/develop

add a swift-based copy.