Once you control your dependencies, you can do things that were impossible before, like making your model think it's observing the battery level from a SwiftUI Preview, and update the view using its "live" codepaths.
This model is 15 lines of testable code.
All of this thanks to
@pointfreeco's new "Dependencies" library, and to the companion extension that I released yesterday!
https://github.com/tgrapperon/swift-dependencies-additions
#swift #swiftui #tca
This model is 15 lines of testable code.
All of this thanks to
@pointfreeco's new "Dependencies" library, and to the companion extension that I released yesterday!
https://github.com/tgrapperon/swift-dependencies-additions
#swift #swiftui #tca