Skip to content

Latest commit

 

History

History

0108-composable-bindings-pt2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

This directory contains code from Point-Free Episode: Composable SwiftUI Bindings: The Problem

Now that we know that SwiftUI state management seems biased towards structs, let’s fix it. We’ll show how to write custom transformations on bindings so that we can use enums to model our domains precisely without muddying our views, and it turns out that case paths are the perfect tool for this job.