Skip to content

Commit fc14fa2

Browse files
committed
no message
1 parent f2d178f commit fc14fa2

5 files changed

Lines changed: 15 additions & 29 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
不过都是些源码,下载速度非常快。我更建议您使用`git clone`,这样以后更新时只要`git pull`就可以了,避免了重复下载的麻烦。
66

77
# 快速索引
8-
[简书]()[bestswifter]()
8+
99
这些demo都是用来配合我的博客,你可以选择在简书或我的个人博客阅读文章,水平有限欢迎指正。
1010

1111
* 你应该知道的Swift小tips:[简书](http://www.jianshu.com/p/a11c6060176c)
@@ -16,3 +16,4 @@
1616
* UIKit性能调优实战讲解:[简书](http://www.jianshu.com/p/619cf14640f3)[bestswifter](http://bestswifter.com/uikitxing-neng-diao-you-shi-zhan-jiang-jie/)
1717
* Swift递归枚举与红黑树:[简书](http://www.jianshu.com/p/ad09e1f404b0)
1818
* 史上最简单的UIScrollView+Autolayout出坑指南:[简书](http://www.jianshu.com/p/f7f1ba67c3ca)[bestswifter](http://bestswifter.com/uiscrollviewwithautolayout/)
19+
* 几个加速Swift开发的小tip:[简书]()

SwiftTips/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 几个加速Swift开发的小tip
2+
3+
这份代码是[《几个加速Swift开发的小tip》]()一文的demo,主要介绍了Swift中很不错,但也很容易忽视的小tip,掌握这些小技巧能够一定程度上加快开发速度,写出更好的代码

SwiftTips/SwiftTips.xcodeproj/project.pbxproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
/* Begin PBXBuildFile section */
1010
9BE365691C60CFCE00C61A55 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BE365681C60CFCE00C61A55 /* main.swift */; };
11-
9BE365741C60D07B00C61A55 /* Closure.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BE3656F1C60D07B00C61A55 /* Closure.swift */; };
1211
9BE365751C60D07B00C61A55 /* PrivateSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BE365701C60D07B00C61A55 /* PrivateSet.swift */; };
1312
9BE365761C60D07B00C61A55 /* Semicolon.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BE365711C60D07B00C61A55 /* Semicolon.swift */; };
1413
9BE365771C60D07B00C61A55 /* Breakpoint.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BE365721C60D07B00C61A55 /* Breakpoint.swift */; };
@@ -30,7 +29,6 @@
3029
/* Begin PBXFileReference section */
3130
9BE365651C60CFCE00C61A55 /* SwiftTips */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = SwiftTips; sourceTree = BUILT_PRODUCTS_DIR; };
3231
9BE365681C60CFCE00C61A55 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = "<group>"; };
33-
9BE3656F1C60D07B00C61A55 /* Closure.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Closure.swift; sourceTree = "<group>"; };
3432
9BE365701C60D07B00C61A55 /* PrivateSet.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PrivateSet.swift; sourceTree = "<group>"; };
3533
9BE365711C60D07B00C61A55 /* Semicolon.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Semicolon.swift; sourceTree = "<group>"; };
3634
9BE365721C60D07B00C61A55 /* Breakpoint.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Breakpoint.swift; sourceTree = "<group>"; };
@@ -68,7 +66,6 @@
6866
isa = PBXGroup;
6967
children = (
7068
9BE365681C60CFCE00C61A55 /* main.swift */,
71-
9BE3656F1C60D07B00C61A55 /* Closure.swift */,
7269
9BE365701C60D07B00C61A55 /* PrivateSet.swift */,
7370
9BE365711C60D07B00C61A55 /* Semicolon.swift */,
7471
9BE365721C60D07B00C61A55 /* Breakpoint.swift */,
@@ -137,7 +134,6 @@
137134
9BE365691C60CFCE00C61A55 /* main.swift in Sources */,
138135
9BE365781C60D07B00C61A55 /* ReuseIdentifier.swift in Sources */,
139136
9BE365751C60D07B00C61A55 /* PrivateSet.swift in Sources */,
140-
9BE365741C60D07B00C61A55 /* Closure.swift in Sources */,
141137
9BE365771C60D07B00C61A55 /* Breakpoint.swift in Sources */,
142138
9BE365761C60D07B00C61A55 /* Semicolon.swift in Sources */,
143139
);
@@ -259,6 +255,7 @@
259255
9BE3656E1C60CFCE00C61A55 /* Release */,
260256
);
261257
defaultConfigurationIsVisible = 0;
258+
defaultConfigurationName = Release;
262259
};
263260
/* End XCConfigurationList section */
264261
};

SwiftTips/SwiftTips/Closure.swift

Lines changed: 0 additions & 24 deletions
This file was deleted.

SwiftTips/SwiftTips/Semicolon.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,13 @@ import Foundation
1111
func doSomething() {
1212
let error: AnyObject? = nil
1313
guard error == nil else { print("Error information"); return }
14+
15+
/**
16+
* Old version
17+
*/
18+
guard error == nil
19+
else {
20+
print("Error information")
21+
return
22+
}
1423
}

0 commit comments

Comments
 (0)