Swift class for Torii.js