
Escape if-statement hell with Swift’s State Pattern
The State Pattern groups state-specific behavior and transitions into objects or enums, reducing scattered conditionals. This article explains how to refactor Swift screen states and distinguish intentional designs that resemble the Strategy Pattern.
Read article



