Slide 1

Slide 1 text

deep dive into Protocols (Swift Delhi Meetup, Chapter 3) ~ Ritesh Gupta

Slide 2

Slide 2 text

`Protocol-Oriented Programming in Swift` https://developer.apple.com/videos/play/wwdc2015/408/ WWDC - 2015

Slide 3

Slide 3 text

`Protocol and Value Oriented Programming in UIKit Apps` https://developer.apple.com/videos/play/wwdc2016/419/ WWDC - 2016

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

playground demos..

Slide 8

Slide 8 text

protocol ->

Slide 9

Slide 9 text

protocol -> protocol extension ->

Slide 10

Slide 10 text

protocol -> protocol extension -> protocol 
 constrained extension ->

Slide 11

Slide 11 text

self (refers to the `object`) vs Self
 (refers to the `type` that conforms to a protocol)

Slide 12

Slide 12 text

https://krakendev.io/blog/generic-protocols-and-their- shortcomings http://austinzheng.com/2015/09/29/swift-generics-pt-2/ http://www.russbishop.net/swift-associated-types

Slide 13

Slide 13 text

protocol is not a silver bullet.. http://chris.eidhof.nl/post/protocol-oriented-programming/

Slide 14

Slide 14 text

No content