I tried to write mine in Swift too, and ScreenSaverEngine refused to run it. Displayed a lovely flickery message instead.