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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
AIによる開発の民主化を支える コンテキスト管理のこれまでとこれから
mulyu
3
250
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
550
SourceGeneratorのススメ
htkym
0
190
Vibe Coding - AI 驅動的軟體開發
mickyp100
0
170
AIエージェントのキホンから学ぶ「エージェンティックコーディング」実践入門
masahiro_nishimi
5
430
izumin5210のプロポーザルのネタ探し #tskaigi_msup
izumin5210
1
110
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
430
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
1k
Lambda のコードストレージ容量に気をつけましょう
tattwan718
0
120
Architectural Extensions
denyspoltorak
0
280
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
190
Package Management Learnings from Homebrew
mikemcquaid
0
220
Featured
See All Featured
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Side Projects
sachag
455
43k
RailsConf 2023
tenderlove
30
1.3k
Exploring anti-patterns in Rails
aemeredith
2
250
Writing Fast Ruby
sferik
630
62k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.2k
Testing 201, or: Great Expectations
jmmastey
46
8k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.6k
How STYLIGHT went responsive
nonsquared
100
6k
Automating Front-end Workflow
addyosmani
1371
200k
Marketing to machines
jonoalderson
1
4.6k
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