This is the code for the ThinkAndBuild tutorial: "How to build custom controls in Swift"