blob: ec8257bd920cdde318d039e58bb7177ade468f68 [file] [log] [blame]
{
"name": "Centipede",
"version": "1.1.0",
"summary": "Swift achieve a pure library closures achieve UIKit assembly delegate and dataSource methods.",
"description": "一个Swift库,使用闭包实现UIKit组件的delegate和dataSource方法\n\n解决什么问题\n\n在实现delegate的各个方法时:\n\n方法遍布整个ViewController,很散。\n具体的实现与成员变量被分开了,阅读时需要分开查看。\n如果当对象中实现多个UITableViewDataSource时,方法中需要判断组件来做出反应。如:(这很丑)\n@objc func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {\n return tableView == leftTableView ? leftDatas.count : rightDatas.count\n}\n这些情况让代码不易阅读和维护。\n\n希望:\n\n代码连续。组件的构造、样式设置和各delegate实现方法可写在一个位置。\n独立。有多个UITableView时,tableViewA和tableViewB的delegate方法实现是独立的,互不干扰。",
"homepage": "https://github.com/klaus01/Centipede",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"柯磊": "kelei0017@gmail.com"
},
"social_media_url": "http://twitter.com/kelei0017",
"platforms": {
"ios": "8.0"
},
"source": {
"git": "https://github.com/klaus01/Centipede.git",
"tag": "1.1.0"
},
"source_files": [
"Centipede/**/*.swift",
"Centipede/Centipede.h"
],
"public_header_files": "Centipede/Centipede.h",
"requires_arc": true
}