swift short tour - interesting language
TRANSCRIPT
![Page 1: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/1.jpg)
1
Trinh Nguyen
2014.12.11
![Page 2: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/2.jpg)
2
![Page 3: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/3.jpg)
3
The previous WWDCs WWDC 2014
![Page 4: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/4.jpg)
4
WWDC 2014
![Page 5: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/5.jpg)
5
![Page 6: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/6.jpg)
Objective C
//ex1
CGPoint aPoint = CGPointMake(9.0, 10.0);
//ex2
UIView *aView = [[UIView alloc] init];
6
![Page 7: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/7.jpg)
And Swift
//ex1
let aPoint = CGPointMake(9.0, 10.0)
//or equivalently:
let aPoint: CGPoint = CGPointMake(9.0, 10.0)
//ex2
var aView = UIView()
//or equivalently:
let aView: UIView = UIView()
3 characters
7
![Page 8: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/8.jpg)
And Swift
//ex1
let aPoint = CGPointMake(9.0, 10.0)
//or equivalently:
let aPoint: CGPoint = CGPointMake(9.0, 10.0)
//ex2
var aView = UIView()
//or equivalently:
let aView: UIView = UIView()
3 characters
8
Swift performs type checks when compiling your
code and flags any mismatched types as errors. This
enables you to catch and fix errors as early as
possible in the development process.
![Page 9: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/9.jpg)
; 9
![Page 10: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/10.jpg)
; 10
![Page 11: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/11.jpg)
11
![Page 12: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/12.jpg)
12
![Page 13: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/13.jpg)
13
![Page 14: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/14.jpg)
Swift comes with many features to make your
code fairly human readable:
• Closures unified with function pointers
• Tuples and multiple return values
• Generics
• Fast and concise iteration over a range or collection
• Structs that support methods, extensions, protocols.
• Functional programming patterns.
14
![Page 15: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/15.jpg)
15
![Page 16: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/16.jpg)
16
![Page 17: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/17.jpg)
17 https://www.youtube.com/watch?v=G4rDwr03VRQ#t=162
![Page 18: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/18.jpg)
18 https://www.youtube.com/watch?v=G4rDwr03VRQ#t=162
![Page 19: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/19.jpg)
19 https://www.youtube.com/watch?v=G4rDwr03VRQ#t=162
![Page 20: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/20.jpg)
20
![Page 21: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/21.jpg)
21
![Page 22: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/22.jpg)
22
![Page 23: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/23.jpg)
![Page 24: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/24.jpg)
24
![Page 25: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/25.jpg)
25
![Page 26: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/26.jpg)
26
![Page 27: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/27.jpg)
https://www.youtube.com/watch?v=w2IbLZLWCJ0&feature=youtu.be
27
![Page 28: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/28.jpg)
28
![Page 29: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/29.jpg)
29
![Page 30: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/30.jpg)
30
![Page 31: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/31.jpg)
31
![Page 32: Swift short tour - Interesting language](https://reader036.vdocuments.us/reader036/viewer/2022062514/55ac18bd1a28ab3c5b8b45a1/html5/thumbnails/32.jpg)
Q - A
32