The Startup
Published in

The Startup

Protocols, Delegation & SwiftUI2.0

Mixing Protocol Programming with Declarative Coding

A simple app that synchronises the colour of the text/square using a delegate invoked with a tap gesture

There are dozens of programming paradigms with many languages supporting multiple ones. Swift is no exception and supports objected oriented coding with classes and inheritance, declarative coding with SwiftUI with states and protocol oriented programming with protocols and generic types. Indeed Swift’s support for the…

--

--

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
Mark Lucking

Mark Lucking

Coding for 35+ years, enjoying using and learning Swift/iOS development. Writer @ Better Programming, @The StartUp, @Mac O’Clock, Level Up Coding & More