Skip to content

eonist/GeomKit

Repository files navigation

platform Lang SPM compatible SwiftLint Sindre Reviewed by Hound codebeat badge Github actions badge

Features:

  • Common geometry methods

Installation:

  • Swift package manager "https://github.com/eonist/GeomKit" target "master"
  • Manual Open GeomKit.xcodeproj

Example:

let rect: CGRect = .init(origin: .zero, size: .init(width: 100, height: 100))
let cgPath = CGRectParser.roundRect(rect: rect, radius: 20)
let shapeLayer: CAShapeLayer = .init()
CGPathModifier.fill(shape: shapeLayer, cgPath: cgPath, fillColor: .green)
self.view.layer.addSublayer(shapeLayer)

About

Sugar for Geom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages