Similar to Masonry, but certainly not as good as Masonry.
Fast use of NSLayout Constraint in Swift. It is more convenient to optimize some mistakes which are easy to make.
Using the method, download demo, then copy the UIview + Extension. swift file to your corresponding file directory, and click Add File to Demo. If you already have a file with the same name, copy the contents of UIView {} to that file.
MIT liecense