Skip to content

Commit 29db93e

Browse files
committed
Update Centipede.podspec to 2.0.0
1 parent d9e62f9 commit 29db93e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Centipede.podspec

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@ Pod::Spec.new do |s|
33
s.version = "2.0.0"
44
s.summary = "Swift achieve a pure library closures achieve UIKit assembly delegate and dataSource methods."
55
s.description = <<-DESC
6-
一个Swift库,使用闭包实现UIKit组件的delegate和dataSource方法
6+
一个 Swift 库,使用闭包实现 UIKit 等组件的 delegate 和 dataSource 方法
77
88
解决什么问题
99
10-
在实现delegate的各个方法时
10+
在实现 delegate 的各个方法时
1111
12-
方法遍布整个ViewController,很散
12+
方法遍布整个 ViewController,散乱
1313
具体的实现与成员变量被分开了,阅读时需要分开查看。
14-
如果当对象中实现多个UITableViewDataSource时,方法中需要判断组件来做出反应。:(这很丑)
15-
@objc func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
14+
如果 ViewController 中实现多个 UITableViewDataSource 时,方法中需要判断组件来做出反应。如下:(这很丑)
15+
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
1616
return tableView == leftTableView ? leftDatas.count : rightDatas.count
1717
}
1818
这些情况让代码不易阅读和维护。
1919
2020
希望:
2121
22-
代码连续。组件的构造、样式设置和各delegate实现方法可写在一个位置
23-
独立。有多个UITableView时,tableViewA和tableViewB的delegate方法实现是独立的,互不干扰。
22+
代码连续。组件的构造、样式设置和各 delegate 实现方法可写在一个位置
23+
独立。有多个 UITableView 时,tableViewA 和tableViewB 的 delegate 方法实现是独立的,互不干扰。
2424
DESC
2525
s.homepage = "https://github.com/klaus01/Centipede"
2626
s.license = { :type => "MIT", :file => "LICENSE" }
2727
s.author = { "柯磊" => "kelei0017@gmail.com" }
2828
s.social_media_url = "http://twitter.com/kelei0017"
2929
s.platform = :ios, "8.0"
30-
s.source = { :git => "https://github.com/klaus01/Centipede.git", :tag => s.version }
30+
s.source = { :git => "https://github.com/klaus01/Centipede.git", :tag => "#{s.version}" }
3131
s.source_files = "Centipede/**/*.swift", "Centipede/Centipede.h"
3232
s.public_header_files = "Centipede/Centipede.h"
3333
s.requires_arc = true

0 commit comments

Comments
 (0)