Due to the many screen sizes in the mobile world, staying relative to screen size is crucial. Hard-coding margins and sizes based on points can be short-sighted. In this post, we will subclass NSLayoutConstraint to achieve percentage-based margins.
The native mobile app version is available and was inspired from uncovering the joys, pains, and realities of mobile, web, and software development. Many of my blog posts dissect the very same app and other real-world projects. The best part – it is completely open-sourced in Swift!