<commit_before># InkKit

[![Version](https://img.shields.io/cocoapods/v/InkKit.svg?style=flat)](http://cocoapods.org/pods/InkKit)
[![License](https://img.shields.io/cocoapods/l/InkKit.svg?style=flat)](http://cocoapods.org/pods/InkKit)
[![Language](https://img.shields.io/badge/language-swift-ff69b4.svg)](http://cocoadocs.org/docsets/InkKit)
[![Platform](https://img.shields.io/cocoapods/p/InkKit.svg?style=flat)](http://cocoapods.org/pods/InkKit)

Everything you see here, was code-drawn with InkKit! In fact, other than some `CGRect` instances, this is ALL the code required to draw the image you see on the right ;)

<table>
  <tr>
    <th width="30%">Drawing made simple!</th>
    <th width="30%">InkKit In Action</th>
  </tr>
  <tr>
    <td>Lets draw the screen on the right.</td>
    <th rowspan="9"><img src="http://shaps.me/assets/img/blog/InkKit.gif"></th>
  </tr>
  <tr><td><div class="highlight highlight-source-swift"><pre>
Draw.fillRect(bgFrame, color: UIColor(hex: "1c3d64"))
let grid = Grid(colCount: 6, rowCount: 9, bounds: gridFrame)
let path = grid.path(includeComponents: [.Columns, .Rows])

Draw.strokePath(path, startColor: UIColor(white: 1, alpha: 0.15),
    endColor: UIColor(white: 1, alpha: 0.05), angleInDegrees: 90)

let rect = grid.boundsForRange(sourceColumn: 1, sourceRow: 1,
                      destinationColumn: 4, destinationRow: 6)

drawCell(rect, title: "4x6",
  includeBorder: true, includeShadow: true)

Draw.addShadow(.Outer, path: UIBezierPath(rect: barFrame),
           color: UIColor(white: 0, alpha: 0.4), radius: 5,
                       offset: CGSize(width: 0, height: 1))

Draw.fillRect(barFrame, color: UIColor(hex: "ff0083"))

let (_, navFrame) = barFrame.divide(20, fromEdge: .MinYEdge)
"InkKit".drawAlignedTo(navFrame, attributes: [
  NSForegroundColorAttributeName: Color.whiteColor(),
  NSFontAttributeName: UIFont(name: "Avenir-Book", size: 20)!
])

backIndicatorImage().drawAtPoint(CGPoint(x: 22, y: 30))  
</pre></div></td></tr>
</table>

## Change Log

**v1.3.1**

* OSX Support
* OSX Demo Project now included<commit_msg>Added reference to Swift 3.0<commit_after># InkKit

[![Version](https://img.shields.io/cocoapods/v/InkKit.svg?style=flat)](http://cocoapods.org/pods/InkKit)
[![License](https://img.shields.io/cocoapods/l/InkKit.svg?style=flat)](http://cocoapods.org/pods/InkKit)
[![Language](https://img.shields.io/badge/language-swift-ff69b4.svg)](http://cocoadocs.org/docsets/InkKit)
[![Platform](https://img.shields.io/cocoapods/p/InkKit.svg?style=flat)](http://cocoapods.org/pods/InkKit)

Everything you see here, was code-drawn with InkKit! In fact, other than some `CGRect` instances, this is ALL the code required to draw the image you see on the right ;)

<table>
  <tr>
    <th width="30%">Drawing made simple!</th>
    <th width="30%">InkKit In Action</th>
  </tr>
  <tr>
    <td>Lets draw the screen on the right.</td>
    <th rowspan="9"><img src="http://shaps.me/assets/img/blog/InkKit.gif"></th>
  </tr>
  <tr><td><div class="highlight highlight-source-swift"><pre>
Draw.fillRect(bgFrame, color: UIColor(hex: "1c3d64"))
let grid = Grid(colCount: 6, rowCount: 9, bounds: gridFrame)
let path = grid.path(includeComponents: [.Columns, .Rows])

Draw.strokePath(path, startColor: UIColor(white: 1, alpha: 0.15),
    endColor: UIColor(white: 1, alpha: 0.05), angleInDegrees: 90)

let rect = grid.boundsForRange(sourceColumn: 1, sourceRow: 1,
                      destinationColumn: 4, destinationRow: 6)

drawCell(rect, title: "4x6",
  includeBorder: true, includeShadow: true)

Draw.addShadow(.Outer, path: UIBezierPath(rect: barFrame),
           color: UIColor(white: 0, alpha: 0.4), radius: 5,
                       offset: CGSize(width: 0, height: 1))

Draw.fillRect(barFrame, color: UIColor(hex: "ff0083"))

let (_, navFrame) = barFrame.divide(20, fromEdge: .MinYEdge)
"InkKit".drawAlignedTo(navFrame, attributes: [
  NSForegroundColorAttributeName: Color.whiteColor(),
  NSFontAttributeName: UIFont(name: "Avenir-Book", size: 20)!
])

backIndicatorImage().drawAtPoint(CGPoint(x: 22, y: 30))  
</pre></div></td></tr>
</table>

## Change Log

**v2.0.0**

* Swift 3.0 Support
* Updated API to support Swift 3.0 guidelines

In order to use the Swift 3.0 version add the following to your Podfile

`pod 'InkKit', :git => 'https://github.com/shaps80/InkKit.git', :branch => 'Swift3.0'`

**v1.3.1**

* OSX Support
* OSX Demo Project now included
{'fraction_non_alphanumeric': 0.17235919475231848, 'fraction_numerical': 0.026464600769056774, 'mean_word_length': 4.520599250936329, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 51, 'https://': 9, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6552897', 'n_tokens_mistral': 1758, 'n_tokens_neox': 1635, 'n_words': 352}