Swift sections
Published in

Swift sections

Rewiring delegate internals

Let’s call this NOOP :-)

Photo by Anastasia Dulgier on Unsplash

Assume that we want to use a framework that offers a core component with a delegate, and a super-component that uses (without hiding) the core, becoming its delegate and offering a specialized — yet less complete — super delegate itself.

This isn’t proper OOP — there’s no proper encapsulation of the core within the super-component — but in practice…

--

--

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