This is a code sample based on the WWDC session
This repo contains an Xcode project with a single Swift Playgound. The project can be opened and run in Xcode 11.5, or the playground can be imported into the Swift Playgrounds app.
Direct links to code that appears in the WWDC session: