Skip to content

2.17 • Square Size2D initializers

Latest

Choose a tag to compare

@KyNorthstar KyNorthstar released this 05 Feb 02:57
dd8eba4

This introduces a convenience initializer and a static factory that create a square Size2D (where width and height are equal, given the single length value to use for each).

let selection = CGRect(origin: .zero, size: .square(viewport.minMeasurement))
pfp.size = CGSize(square: 48)

See #75 for the PR containing these changes.


Patches

  • 2.17.1
    • #78 Fixed package resolution errors & warnings
    • #78 Updated to a more-permissive license

Full Changelog: 2.16.0...2.17.1