Useful auto layout code, mostly written in Swift.