[Add] HyphenateChat_test1 1.0.1
[CocoaPods.git] / Specs / d / 3 / 0 / ALKit / 0.5 / ALKit.podspec.json
blobce3d439fc0d306120d764604241a130e9e2fe023
2   "name": "ALKit",
3   "version": "0.5",
4   "summary": "Easy to use AutoLayout wrapper around `NSLayoutConstraints`.",
5   "description": "ALKit\n===\n\nEasy to use AutoLayout wrapper around `NSLayoutConstraints`.\n\nRequirements\n---\n\n- Swift 3.0+\n- iOS 8.0+\n- tvOS 9.0+\n\nInstall\n----\n\n#### CocoaPods\n\n``` ruby\nuse_frameworks!\npod 'ALKit'\n```\n\n### Manual\n\nCopy the `ALKit` folder into your project\n\nUsage\n----\n\n### Init\n\nCreate `UIView` instances from either storyboard or programmatically.\nDon't forget to set `view.translatesAutoresizingMaskIntoConstraints = false` if you are creating them programmatically.\n\n### Wraper\n\nThe main function of all kit.\nWraps `addConstraint:` method of autolayout.\n\n``` swift\nfunc pin(\ninView inView: UIView? = nil,\nedge: NSLayoutAttribute,\ntoEdge: NSLayoutAttribute,\nofView: UIView?,\nwithInset: CGFloat = 0) {\nlet view = inView ?? ofView ?? self\nview.addConstraint(NSLayoutConstraint(\nitem: self,\nattribute: edge,\nrelatedBy: .Equal,\ntoItem: ofView,\nattribute: toEdge,\nmultiplier: 1,\nconstant: withInset))\n}\n```\n\n#### Example\n\n``` swift\nbox.fill(toView: view)\n\nblue.pinTop(toView: box, withInset: 10)\nblue.fillHorizontal(toView: box, withInset: 10)\nblue.pinHeight(90)\n\nred.pinBottom(toView: box, withInset: 10)\nred.fillHorizontal(toView: box, withInset: 10)\nred.pinHeight(90)\n\nyellow.pinToTop(ofView: red, withOffset: 10)\nyellow.pinCenterX(toView: red)\nyellow.pinSize(width: 50, height: 50)\n```\n\nThat would be look like this:\n\n![alt tag](https://github.com/cemolcay/ALKit/blob/master/demo.png?raw=true)",
6   "homepage": "https://github.com/cemolcay/ALKit",
7   "license": {
8     "type": "MIT",
9     "file": "ALKit/LICENSE"
10   },
11   "authors": {
12     "cemolcay": "ccemolcay@gmail.com"
13   },
14   "platforms": {
15     "ios": "8.0",
16     "tvos": "9.0"
17   },
18   "source": {
19     "git": "https://github.com/cemolcay/ALKit.git",
20     "tag": "0.5"
21   },
22   "source_files": "ALKit/ALKit/*.swift",
23   "requires_arc": true,
24   "pushed_with_swift_version": "3.0"