/CGUtils

CGUtils: A Swift module offering utility extensions for CoreGraphics-related tasks.

Primary LanguageSwiftMIT LicenseMIT

CGUtils

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.

Features

  • Aspect Fit and Aspect Fill calculations for CGSize and CGRect
  • Generating transformations using CGAffineTransform to fit or fill rectangles
  • Various extensions related to CoreGraphics

Installation

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")
]

License

CGUtils is distributed under the MIT license. See the LICENSE file for more details.