mirror of
https://github.com/exyte/Macaw.git
synced 2024-09-11 13:15:35 +03:00
2.2 KiB
2.2 KiB
Macaw
[![CI Status](http://img.shields.io/travis/Igor Zapletnev/Macaw.svg?style=flat)](https://travis-ci.org/Igor Zapletnev/Macaw)
![](https://github.com/exyte/Macaw/blob/master/logo.png)
What is Macaw?
Macaw is a powerful and easy-to-use vector graphics library written in Swift.
It's simple
Get started with Macaw in several lines of code:
class MyView: MacawView {
required init?(coder aDecoder: NSCoder) {
let text = Text(text: "Hello, World!", place: .move(dx: 145, dy: 100))
super.init(node: text, coder: aDecoder)
}
}
![](https://www.dropbox.com/s/o4xe3eezk4zv901/macaw-readme-001.png?dl=1)
It has SVG support
Include Scalable Vector Graphics right into your application:
class SVGView: MacawView {
required init?(coder aDecoder: NSCoder) {
super.init(node: SVGParser.parse(path: "tiger"), coder: aDecoder)
}
}
![](https://www.dropbox.com/s/p84o7komopmb2yn/macaw-howto-004.png?dl=1)
It's powerful
Affine transformations, user events, animation and various effects to build beautiful apps with Macaw:
![](https://www.dropbox.com/s/b6lspzzqa80ielk/periodic-ipad.gif?dl=1)
Take a look at getting started guide to learn more.
Requirements
- iOS 8.0+ / Mac OS X 10.9+
- Xcode 7.3+
Installation
Macaw is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "Macaw"
Building from sources
To build Macaw from sources:
- clone the repo
git@github.com:exyte/Macaw.git
- open terminal and run
cd <MacawRepo>/Example/
- run
pod install
to install all dependencies - run
open Example.xcworkspace/
to open project in the Xcode
Author
exyte, info@exyte.com
License
Macaw is available under the MIT license. See the LICENSE file for more info.