Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
iOS Development with Swift
Search
Venkat Palivela
March 27, 2015
Programming
0
320
iOS Development with Swift
Getting started with swift and iOS development. My talk at MVP Mix 2015 in Dallas, Texas
Venkat Palivela
March 27, 2015
Tweet
Share
More Decks by Venkat Palivela
See All by Venkat Palivela
Continuous Delivery in Mobile
vpalivela
0
180
iOS Development with C#
vpalivela
0
330
Groovy on Grails
vpalivela
2
520
Other Decks in Programming
See All in Programming
すべてのコンテキストを、 ユーザー価値に変える
applism118
2
680
XSLTで作るBrainfuck処理系
makki_d
0
210
既存デザインを変更せずにタップ領域を広げる方法
tahia910
1
240
ドメインモデリングにおける抽象の役割、tagless-finalによるDSL構築、そして型安全な最適化
knih
11
2k
ASP.NETアプリケーションのモダナイズ インフラ編
tomokusaba
1
410
AIコーディング道場勉強会#2 君(エンジニア)たちはどう生きるか
misakiotb
1
240
プロダクト志向ってなんなんだろうね
righttouch
PRO
0
150
[初登壇@jAZUG]アプリ開発者が気になるGoogleCloud/Azure+wasm/wasi
asaringo
0
130
Select API from Kotlin Coroutine
jmatsu
1
190
「ElixirでIoT!!」のこれまでとこれから
takasehideki
0
370
XP, Testing and ninja testing
m_seki
3
170
ニーリーにおけるプロダクトエンジニア
nealle
0
100
Featured
See All Featured
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.5k
Faster Mobile Websites
deanohume
307
31k
Building Flexible Design Systems
yeseniaperezcruz
328
39k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.1k
YesSQL, Process and Tooling at Scale
rocio
173
14k
A better future with KSS
kneath
239
17k
Speed Design
sergeychernyshev
32
1k
Writing Fast Ruby
sferik
628
61k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
161
15k
The Invisible Side of Design
smashingmag
299
51k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.2k
Why You Should Never Use an ORM
jnunemaker
PRO
56
9.4k
Transcript
Starting iOS Development with Swift Venkat Palivela ThoughtWorks @venkatpalivela
Hi, my name is Venkat I’m a Senior Consultant at
ThoughtWorks Developing Mobile Apps 2
Outline • What is Swift? • Swift Basics • Swift
and Objc • Why native? 3
What is Swift?
What is Swift? 5 New Language for Apple Functional Object
Oriented Statically Typed Type Inference
What does it all mean? 6 Top Down vs Bottom
Up Object Oriented Programming is top down Functional Programming is bottom up Swift is both…
Language Constructs • Types and Type Inferencing • Optional Types
• First class functions • Closures • Reactive Programming 7
Types 8 var someString = “Hello World!” let someOtherString =
“Hello World!” var someString: String = “Hello World!” let someOtherString: String = “Hello World!”
Optional Types 9 var user: User? var userName = user?.fullName.uppercaseString
var postalCode = user?.address?.state?.uppercaseString
Functions & Closures 10 func lessThanTen(number: Int) -‐> Bool {
return number < 10 } func someOperation( input: Int, success: (result: String) -‐> Void, failure: (error: NSError) -‐> Void) { // Do some async operation }
Code Demo! 11
Code Katas 12 • Prime Factors • Bowling • Mars
Rover • Poker • Vending Machine • Conway’s Game of Life
Swift and Objc 13 Objective - C Runtime Swift Objective
- C All Swift programs execute inside Objective-C runtime. As a result bridging between Swift and Objective -C is possible However, Swift only language constructs are not visible to Objective-C Bridging
Why Native? 14 http://martinfowler.com/articles/multiMobile/
Thanks! Venkat Palivela @venkatpalivela 15