22

Syntax can become extremely verbose when working with many APIs in the iOS SDK with Swift, and Quartz is no exception.

Here’s a library that provides a more convenient syntax when using Swift with Quartz and related frameworks such as Core Image, and Core Graphics called SwiftGraphics from Jonathan Wight.

Here’s some of the features provided by SwiftGraphics:

  • Operator overloading for CoreGraphics types
  • Quadtree data structures
  • Object oriented extensions for CGContext and CGPath
  • Easy creation of geometry objects
  • Convex hull generation
  • An Xcode 6 playground

You can find SwiftGraphics on Github here.