I found this on a blog post somewhere. This is a swift version of that. Sorry I forget where it's from. :(

I mostly just wanted to see how SDL worked with Swift.