Refactoring Imperative to Declarative

A journey to look at how I can swap one for the other

Mark Lucking
Level Up Coding
Published in
5 min readFeb 7, 2021

--

Photo by Antoine Dautry on Unsplash

In 2019 Apple published two declarative frameworks, SwiftUI and Combine. Which has had me thinking this month and indeed published a couple of articles on the subject, ones like this. Getting Combine to work is fun, really. Maybe not quite as exciting as SwiftUI, but it is interesting and rewarding I promise.

--

--

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