Swift Rectangle Tools
A set of Swift utilities for dealing with rectangles, including a way to generically build your own!
This package includes new types such as
UIntPoint, conveniences for doing math with various points in rectangles, centering and scaling, generic protocols to unify math across all rectangular types, conveniences for measuring and placing rectangles, and much more.
Who knew there was so much to be done with rectangles?
Over 2,000 test assertions prove that this library works as it says it does
This library was created for enterprise-scale applications, and is being used by multiple corporations in production today.
If you're using this with SwiftUI, you can also
import RectangleTools_SwiftUI to gain SwiftUI-specific rectangle tools!