How Delegation Works – A Swift Developer’s Guide

Updated on October 11, 2016 – Swift 3.0 Delegation can be a difficult topic to wrap your head around. I found it easiest to break up posts on the topic to help readers who are new to the pattern grasp the concepts a little better. First, I analyzed what delegation is in “What is Delegation […]

What is Delegation? – A Swift Developer’s Guide

Of the major design patterns that are prevalent in iOS development, delegation is one that appears quite often. For many developers entering app development for the iOS platform, dealing with delegates is a new concept. It certainly was for me. In my analysis of NSNotificationCenter vs Delegation, I wrote some about delegation, but only in […]

Pick a Delegate… Any Delegate… On Clean View Controllers in Swift

The delegation pattern is ubiquitous in iOS development – the pattern is a “core competency” for developing in Cocoa, and if you program with the iOS SDK for any length of time and you’ll end up writing some code that resembles  someInstance.delegate = someDelegate. One of the toughest things that I’ve experienced is choosing what someDelegate is.  All too often, a View […]