Geek Culture
Published in

Geek Culture

Decoupling code with protocols and delegation

Getting Started with Swift’s Delegate Pattern

You don’t pack the whole house when you go on vacation, you bring a suitcase

A bunch of suitcases on display
Um, you’re only leaving for a few days, do you really need all that? (photo credit: arthur-edelmans,

Imagine you’re going on vacation. You know exactly where you’re going, how long you’re staying, and the weather pattern is very reliable. You’re super…



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store