Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 1.26 KB

README.md

File metadata and controls

23 lines (20 loc) · 1.26 KB

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)