Skip to content

v1.1.1 - CGRect Initializers

Choose a tag to compare

@mark-onyschuk mark-onyschuk released this 20 Jun 16:19
· 6 commits to main since this release

This small release exposes a public initializer for CGRect which takes an array of points.

Earlier releases provided the same functionality for a variable number of CGPoint arguments to the initializer, guaranteeing that the passed array contained at least one point. The new public initializer takes an arbitrary collection of CGVectorType and creates a CGRect from it, creating a CGRect.null where the collection is empty.

Full Changelog: v1.1.0...v1.1.1