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!
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Ritesh Gupta
January 21, 2017
Technology
460
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Thinking in Swift!
Swift India, Delhi Meetup
Ritesh Gupta
January 21, 2017
More Decks by Ritesh Gupta
See All by Ritesh Gupta
Declarative Networking with Combine –– iOS Conf SG 2020
riteshhh
0
200
Combine! All the things
riteshhh
3
710
Deep dive into Protocols
riteshhh
1
470
How to be a POP-Star
riteshhh
1
410
Other Decks in Technology
See All in Technology
Autonomous AI Databaseサービス・アップデート(FY27)/ adb-service-update-jp-fy27
oracle4engineer
PRO
0
100
少人数データチームのDevin活用実践事例
runandy16
2
430
プロダクト思考 × 基盤思考を AIで実現する Compound Engineering
tkc66buzz
1
250
その指示、Bobにしっかり伝わってる?初心者でも即実践できる プロンプト/コンテキスト設計のコツ
muehara
0
110
Sony-DroidKaigi2026
sony
1
310
Redmine 7.0で私が開発した新機能の狙いと背景
vividtone
1
110
多摩川(.dev)ランニング入門 / Tamagawa.dev#3
fujiwara3
3
340
DGX Sparkを2台使って いろいろ動かす話
sonoda_mj
1
130
深夜のクラウド懺悔室 1:29:300 or 1:0:0
kazzpapa3
0
150
Benchmarking Vector Databases: pgvector vs. LanceDB
tsho
0
140
Bet AI Day 2026丨Agentは、「金融」という巨大産業の何を変えられるのか
layerx
PRO
0
730
KPIだけでは評価できないプロダクトが考えるべき Evalsという第二の評価系 / Beyond KPIs: Evals as a Second Evaluation Framework for Products #PdEConf
aki_iinuma
4
3.5k
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
85
9.6k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
550
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
330
WENDY [Excerpt]
tessaabrams
12
39k
Bash Introduction
62gerente
615
220k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
640
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
410
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
360
Thoughts on Productivity
jonyablonski
76
5.4k
My Coaching Mixtape
mlcsv
0
300
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
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