Skip to content

A SwiftUI project that demos using enums to manage loading states

Notifications You must be signed in to change notification settings

vuinguyen/EnumManagedStates

Repository files navigation

EnumManagedStates

A project that demonstrates a program's transitions while downloading and displaying data, implemented with booleans and with enums / states.

The point is to show the benefits of managing program transitions using states over booleans, especially when one compares the code for the 2 different implementations.

While this project was built in SwiftUI and runs on the iOS platform, the principles of enums and state machines are applicable across programming languages.

Used as the demo for my talk at the Women Who Code Connect Forward conference on December 4, 2020.

Successful Download Using Booleans

Successful Download Using States

About

A SwiftUI project that demos using enums to manage loading states

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages