Thomas Grapperon

@tgrapperon
133 Followers
213 Following
21 Posts
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
GitHub - tgrapperon/swift-dependencies-additions: More dependencies for `swift-dependencies`

More dependencies for `swift-dependencies` . Contribute to tgrapperon/swift-dependencies-additions development by creating an account on GitHub.

GitHub