Swift sections
Published in

Swift sections

Swift events: almost generic, almost solution(s)

Photo by Jeremy Perkins on Unsplash

I have been thinking about a possible better/generic solution for adding multi-cast delegate/event dispatching support to Swift class hierarchies since January, i.e. since more than 6 months ago.

While in my opinion the solution below is still not better than the one I proposed back then, being less type safe unfortunately, I wanted to post it anyway, maybe it could help somebody…

--

--

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
Sorin Dolha

Sorin Dolha

273 Followers

Software developer • founder of DlhSoft • married • father of two • MacBook enthusiast • physics geek • writing from Cluj