Build a SwiftUI Animal Crossing Application (Part 1)

1 min read Original article ↗

Combine, services, models, and EnvironmentObject

Thomas Ricouard

Press enter or click to view image in full size

Photo by the author.

In this new series of articles, I’ll guide you through the making of my latest open-source project.

It is once again a fully open-source, fully SwiftUI application.

And this time, it’s even available on the App Store! This goes to prove my point that you can have SwiftUI code in production.

But unlike MovieSwiftUI, it doesn’t use the Redux architecture but just the very core of the SwiftUI built-in data flow that I’ve already covered in the past. If you need an introduction or refresher, you should read this article.

I’m using a combination of view, view models, and some environment objects. By following this series of articles, you’ll be able to fully grasp a very simple yet effective SwiftUI application architecture.

Let’s begin with the services and models layer because for the application to be fun, we’ll first need to gather, compute, and fetch some data to put in our data sources…