[Add] AlibabacloudCloudAPI20160714 4.5.1
[CocoaPods.git] / Specs / d / 3 / 0 / ALKit / 0.6 / ALKit.podspec.json
blobf93f01e54f5ff2fb19357b9894125fc323aa7b6d
2   "name": "ALKit",
3   "version": "0.6",
4   "summary": "Easy to use AutoLayout wrapper around `NSLayoutConstraints`.",
5   "swift_version": "4.2",
6   "description": "ALKit\n===\n\nEasy to use AutoLayout wrapper around `NSLayoutConstraints`.\n\nRequirements\n---\n\n- Swift 4.2+\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)",
7   "homepage": "https://github.com/cemolcay/ALKit",
8   "license": "MIT",
9   "authors": {
10     "cemolcay": "ccemolcay@gmail.com"
11   },
12   "platforms": {
13     "ios": "8.0",
14     "tvos": "9.0"
15   },
16   "source": {
17     "git": "https://github.com/cemolcay/ALKit.git",
18     "tag": "0.6"
19   },
20   "source_files": "ALKit/ALKit.swift",
21   "requires_arc": true