The Intentions example (https://github.com/dasdom/intentions) rewritten in Swift