Update Swift syntax in test playground

Resolves issue described in #13. Thanks to @francescobaietto for pointing this out.