TestsTested | ✓ |
LangLanguage | SwiftSwift |
License | BSD |
ReleasedLast Release | Mar 2015 |
SPMSupports SPM | ✗ |
Maintained by Zhang Yungui.
All development happens on the develop branch. Code is merged back on master branch infrequently.
Also note this project is moving to Swift 1.2, which requires Xcode 6.3 and Mac OS X 10.10. Note that this changes breaks Travis CI.
See "Help Wanted" section of this document for how you can contribute to SwiftGraphics.
Wrap Quartz (and other related Frameworks such as CoreImage) in a nice "Swifthonic" API.
Provide wrappers and operators to help make working with graphics primitives in swift as convenient as possible.
All of this code is very much a work in progress. I'm adding and changing functionality as needed. As such I'm trying not to add code that isn't used (with some exceptions).
SwiftGraphics is made up of:
You can add SwiftGraphics in your project as one of the following ways:
Add SwiftGraphics.xcodeproj to your project and set up your dependencies appropriately. You can add SwiftGraphics as a submodule by opening the Terminal, trying to enter the command:
git submodule add https://github.com/schwa/SwiftGraphics.git
Install with Carthage (Recommended):
github "schwa/SwiftGraphics"
to your project Cartfile.carthage update
to download and build SwiftGraphics.Install with CocoaPods v0.36.0+ and add the following to your project Podfile:
platform :ios, '8.0'
use_frameworks!
pod 'SwiftGraphics/iOS'
or
platform :osx, '10.9'
use_frameworks!
pod 'SwiftGraphics/OSX'
SwiftGraphics builds iOS and OS X frameworks. Just add SwiftGraphics.xcodeproj to your project and set up your dependencies appropriately.
You can play with SwiftGraphics in Xcode 6 Playgrounds. IMPORTANT just make sure you compile the SwiftGraphicsPlayground target before trying to run any Playgrounds.
Your help wanted. I would definitely appreciate contributions from other members of the Swift/Cocoa community. Please fork this project and submit pull requests.
You can help by using Swift Graphics in your projects and discovering its shortcomings. I encourage you to file issues against this project.
Contributions are always welcome in the following areas:
All development occurs on the develop branch. New code starts either as a Playground or as a tab inside the houseSwiftGraphics_OSX_UITest application target.
As code proves itself to be useful it is added to the SwiftGraphicsPlayground target and shared with all Playgrounds.
If code is generally useful it is moved directly to the SwiftGraphics target.
See LICENSE for more information