mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 15:22:39 +00:00
Updated templates readme.md file
This commit is contained in:
parent
adf3e87b87
commit
d96c105fab
1 changed files with 33 additions and 0 deletions
|
@ -33,6 +33,39 @@ To use it (before it becomes an Xcode template):
|
|||
- Import created files in the Xcode project
|
||||
|
||||
|
||||
# SwiftUISimpleScreenTemplate
|
||||
This is the boilerplate to create a simple SwiftUI screen including view model, screen coordinator, unit and UI tests.
|
||||
|
||||
To create a screen from this template (before it becomes an Xcode template):
|
||||
|
||||
- `./createSwiftUISimpleScreen.sh ScreenFolder MyScreenName`
|
||||
- Import created files in the Xcode project
|
||||
|
||||
This will create `ScreenFolder` within the `RiotSwiftUI/Modules`. Files inside will be named `MyScreenNameXxx`.
|
||||
|
||||
|
||||
# SwiftUISingleScreenTempalte
|
||||
This is the boilerplate to create a simple SwiftUI screen including view model, screen coordinator, service, unit and UI tests.
|
||||
|
||||
To create a screen from this template (before it becomes an Xcode template):
|
||||
|
||||
- `./createSwiftUISingleScreen.sh ScreenFolder MyScreenName`
|
||||
- Import created files in the Xcode project
|
||||
|
||||
This will create `ScreenFolder` within the `RiotSwiftUI/Modules`. Files inside will be named `MyScreenNameXxx`.
|
||||
|
||||
|
||||
# SwiftUITwoScreenTemplate
|
||||
This is the boilerplate to create two single SwiftUI screens (including view models, screen coordinators, services, unit and UI tests) and a flow coordinator.
|
||||
|
||||
To create screens from this template (before it becomes an Xcode template):
|
||||
|
||||
- `./createSwiftUITwoScreen.sh TwoScreenFolder MyRootCoordinator FirstScreenName SecondScreenName`
|
||||
- Import created files in the Xcode project
|
||||
|
||||
This will create `TwoScreenFolder` within the `RiotSwiftUI/Modules`.
|
||||
|
||||
|
||||
# Usage example
|
||||
Following commands:
|
||||
|
||||
|
|
Loading…
Reference in a new issue