Data Modeling Using Enums in Swift Language

Mohammad Azam
2 min readJun 18, 2021

Application domain objects are the building blocks of any system. The domain represents the entities and the connections between entities of the app. The domain is also used to map the real world into our system.

There are many ways of implementing domain objects. In this article I will show you how to implement models using enums.

Struct as Models

--

--

Mohammad Azam

Lead instructor at a coding bootcamp. Top iOS mobile instructor on Udemy. Author of multiple books and international speaker. azamsharp.school