Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Swift Intro
Search
Max Goedjen
December 02, 2014
Programming
72
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Swift Intro
Max Goedjen
December 02, 2014
Transcript
32 slides
SWIFT
iOS & Mac
Why?
Modern Safe Interoperable
Modern
Modern [ ]
Objective-C [someObject doSomething]; Swift someObject.doSomething()
Modern Blocks & Closures
Objective-C - (void)doSomethingWithCompletion:(void (^)(NSError *))completion; Swift func doSomethingWithCompletion(completion: (NSError) ->
(Void))
Modern Primitives & Literals
Objective-C NSArray *numbers = @[@1, @2, @3]; // NSArray *numbers
= [NSArray arrayWithObjects: // [NSNumber numberWithInt:1], // [NSNumber numberWithInt:2], // [NSNumber numberWithInt:3] // ]; Swift let numbers = [1, 2, 3]
Modern Custom Operators
Custom Operators { /* do some task */ } ~>
{ /* update some UI */}
Safety
Safety Static Typing
Safety Nil Safety
Objective-C SomeObject *someObject = nil; [someObject performCriticalTask]; Swift let someObject:
SomeObject = nil someObject.performCriticalTask() // Compiler error
Objective-C SomeObject *object = nil; NSArray *objectList = @[object]; //
Crash Swift let object: SomeObject? let objectList = [object] // :)
Safety Immutability
Objective-C NSArray & NSMutableArray Swift let & var
Common iOS Tasks Delegation
Objective C if ([self.delegate respondsToSelector:@selector(someDelegateMessage:)]) { [self.delegate someDelegateMessage:self]; } Swift
delegate?.someDelegateMessage?(self)
Interoperability
Swift All The Things? Not So Fast
None
Xcode !
None
Tooling
Tooling REPL
Tooling Playgrounds
Playgrounds
Further Reference Learn Design AND Code!!! GitHub Swift Book Swift
Blog objc.io Airspeed Velocity
Other Decks in Programming
See All in Programming
高橋メソッドでCVE解説シリーズ 〜CVE-2026-112816〜
hakkadaikon
0
280
眠らない開発チームの作り方
biwakonbu
0
180
Getting Started with Vibe Coding
miccheng
0
250
AIコーディング時代のKotest ユニットテストから APIレベルの仕様固定化テストへ
ooga04
0
350
AIコーディングをセッションで終わらせない: PHPライブラリ開発におけるコンテキスト承継設計
ickx
0
110
将来の標準フォーマッター?ktfmtを深堀る
t45k
1
250
Datadog を OTel にするメリットを考察する — Datadog との併用を実アプリで確かめる / Examining the Benefits of Moving Datadog to OTel — Testing OTel Alongside Datadog in a Real App
seike460
PRO
1
110
SODA - FACT BOOK(EN)
sodainc
1
310
高速開発を止めずに 性能を上げる Flyleのシステム刷新と改善の歴史
azihsoyn
0
110
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
210
AI駆動TDD ― 2026年10月版
hrmstrsmgs
0
120
LLM 101
dalinaum
0
560
Featured
See All Featured
Marketing to machines
jonoalderson
1
6k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.3k
Making the Leap to Tech Lead
cromwellryan
135
10k
Building the Perfect Custom Keyboard
takai
2
970
Accessibility Awareness
sabderemane
1
320
Deep Space Network (abreviated)
tonyrice
0
430
Paper Plane (Part 1)
katiecoart
PRO
3
12k
How STYLIGHT went responsive
nonsquared
100
6.4k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
580
ラッコキーワード サービス紹介資料
rakko
5
6.1M
Highjacked: Video Game Concept Design
rkendrick25
PRO
2
600