Added Swift version

Added a Swift example to the documentation.