How to make a simple 2D drawing app in Swift