Step-by-step we are creating UDF framework from scratch. We take a very basic implementation, find problems and improve it to build an intuition on how do unidirectional frameworks work under the hood.
For now it's just a playground, but the format may change as the complexity grows.
Spoiler: The final result will be close to the composable architecture
You can find step-by-step usage example at the UDF.playground root
You can find implementation of each step under the Sources/<step_number>.<step_name>.swift
file in the playground. Each step has it's namespace, declared with an enum without cases (enum <step_name> {}
) We will use some external helpers, imported as a source code under the Sources/Helpers
folder (you don't have to figure out how do these external dependencies work, it is optional, but might be useful).
- 1.BasicExample
- 2.BetterErgonomics_1
- 3.BetterErgonomics_2
- 4.PerformanceImprovements_1
- 5.PerformanceImprovements_2
- 6.HigherOrderReducers_1
Draft
Open UDF.playground
in Xcode. At the root of the playground you can find notes on how to use our UDF framework at each step. Read the tutorial line-by-line. Notice, that at the beginning of each section we encourage you to navigate to implementation and find out how things work and what was changed on each step (read comments line-by-line for some help, Xcode docs may help you to read comments a bit easier)