element-x-ios/Tools/Scripts
2025-12-17 11:45:11 +02:00
..
Templates/SimpleScreenExample Remove eraseToStream now that any AsyncSequence is available to us. (#4836) 2025-12-10 18:33:15 +00:00
createScreen.sh Remove now unnecessary screen creation UI tests copying step. 2025-12-17 11:45:11 +02:00
README.md Update App Icon (#1720) 2023-09-15 12:34:01 +01:00
validate_lfs.sh Add validate-lfs.sh check from Android. (#203) 2022-09-22 09:36:51 +01:00

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:

  • Folder within the /ElementX/Sources/Screens/. Files inside will be named MyScreenNameXxx.
  • MyScreenNameScreenUITests.swift within UITests/Sources
  • MyScreenNameViewModelTests.swift within UnitTests/Sources/Unit