mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
2d486ece33
* use observation in unit and preview tests instead of the async stream * use a parsing approach that is independent of the sourcery annotation * Fix observation deferred fulfillments not receiving the initial value Observation's observe only emits transitions, not the value present at subscription time. Drop the leading initial value from the affected transitionValues sequences and assert it directly with #expect instead. * improved docs
Scripts
Create screen templates
New screen flows are currently using the MVVM-Coordinator pattern. Run Tools/Scripts/createScreen.sh to create a new screen and all its required dependencies.
Usage:
./createScreen.sh Folder MyScreenName
After that run xcodegen to regenerate the project.
createScreen.sh script will create:
Folderwithin the/ElementX/Sources/Screens/. Files inside will be namedMyScreenNameXxx.MyScreenNameScreenUITests.swiftwithinUITests/SourcesMyScreenNameViewModelTests.swiftwithinUnitTests/Sources/Unit