lasso
lasso copied to clipboard
Add Xcode template
Describe your changes
Added Xcode template to automatically generate Lasso components including Flow
and Screen
for more details please check lasso-template
Notes:
-
Flow template:
- I have added support to specify the concrete type of the
FlowModule
, available types:-
FlowModule
andNavigationFlowModule
. the generated enums i.eMyFlowModule: FlowModule {}
are left empty and deferred specifying the type of theOutput
andRequiredContext
for the implementer best judgment (because there are multiple different cases). -
NoOutputFlow
andNoOutputNavigationFlow
.
-
- I have added support to specify the concrete type of the
-
Screen template:
-
I made generating a view controller optional (Enabled by default) because there would be a case where you have a previously implemented viewController with a specific logic and you only want to just add a
Screen
andStore
. -
I couldn't find a simple way to configure generating a
Screen
when there isNoOutput
,NoAction
, orEmptyState
(8 possible cases, not sure if they are valid in a production code). I just decided to keep it simple.
-
Thanks!
Thank you for reviewing my work, @g-mark! I have updated the PR, please have a look.