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
Thinking in Swift by Ritesh at SwiftDelhi-1
Search
Swift India
January 21, 2017
Programming
0
55
Thinking in Swift by Ritesh at SwiftDelhi-1
Thinking in Swift by Ritesh at SwiftDelhi-1
Swift India
January 21, 2017
Tweet
Share
More Decks by Swift India
See All by Swift India
Network Layer Abstraction
swiftindia
0
100
Efficient JSON to Object Parsing
swiftindia
0
79
Sign In with Apple
swiftindia
0
89
Furlenco's AR Journey
swiftindia
0
75
Image processing using Core Image and Metal
swiftindia
0
150
Combine - Diving into Apple’s Reactive Programming
swiftindia
1
160
Social in Hotstar
swiftindia
0
150
Improving App Launch Time
swiftindia
1
72
Backend Driven UIs
swiftindia
0
83
Other Decks in Programming
See All in Programming
CA.swift19 恋するAIアプリ開発の裏側
oskmr
0
360
2 週間で Twitter Bot を作ってみた
contour_gara
0
540
Elm Form Validation
bkuhlmann
0
510
エンターテイメント業界で利用されるAWS
demuyan
0
210
StoreKit2によるiOSのアプリ内課金のリニューアル
kangnux
0
110
educure_カリキュラム生操作マニュアル.pdf
linew_official
0
810
Milestoner
bkuhlmann
1
410
Zero Waste, Radical Magic, and Italian Graft – Quarkus Efficiency Secrets
hollycummins
0
230
VS Code をプロダクトにどう取り込むか
onomax
1
370
PHPはいつから死んでいるかの調査
chiroruxx
1
400
0→1と1→10の狭間で Javaという技術選定を振り返る/Reflecting on the Decision to Choose Java Between Scaling from 0 to 1 and 1 to 10
jaguar_imo
2
380
Site Reliability Engineering for GMO
pyama86
8
1k
Featured
See All Featured
Unsuck your backbone
ammeep
663
57k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
274
13k
A Philosophy of Restraint
colly
197
16k
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
Writing Fast Ruby
sferik
621
60k
Creatively Recalculating Your Daily Design Routine
revolveconf
210
11k
Bootstrapping a Software Product
garrettdimon
PRO
302
110k
The Cost Of JavaScript in 2023
addyosmani
16
3.9k
Building an army of robots
kneath
300
41k
Building Flexible Design Systems
yeseniaperezcruz
319
37k
Build The Right Thing And Hit Your Dates
maggiecrowley
24
2k
Automating Front-end Workflow
addyosmani
1356
200k
Transcript
in Swift ~ Ritesh Gupta (Swift India, Delhi Meetup)
Swift is just not a syntax migration from Objective-C…
Swift is not objective-c styled language…
C ~> C++ Objective-C ~> Swift { imperative } {
object oriented } { object oriented } { protocol oriented }
None
None
None
None
stuck with Inheritance..
None
None
compose everything with Protocols..
UIButton UIBarButtonItem
UIButton UIControl UIView
UIBarButtonItem UIBarItem NSObject
UIBarButtonItem UIBarItem NSObject UIButton UIControl UIView
None
None
Entity (class, struct) vs Behaviour (protocol)
UIView Framable
UIImageView ImageRenderable, Framable
UIButton Tappable, ImageRenderable, Framable
UITableViewCell UICollectionViewCell Reusable, Framable
UIScrollView Scrollable, Framable
UITableView UICollectionView Listable, Scrollable, Framable
UI Entities is collection of behaviours…
..computed variables, extensions, values types, immutability, functional programming, generics, enums,
associative types/ values..
thinking in protocol..
None