CGUtils is a module that contains and manages a collection of useful extensions related to CoreGraphics. This module is written in Swift and offers a variety of utility functions for CoreGraphics related tasks.
- Aspect Fit and Aspect Fill calculations for
CGSize
andCGRect
- Generating transformations using
CGAffineTransform
to fit or fill rectangles - Various extensions related to CoreGraphics
CGUtils can be installed using the Swift Package Manager. Add the following dependency to your Package.swift
file:
dependencies: [
.package(url: "https://github.com/skyfe79/CGUtils.git", .from: "0.0.2")
]
CGUtils is distributed under the MIT license. See the LICENSE file for more details.