Skip to content

Commit

Permalink
Fix flow template
Browse files Browse the repository at this point in the history
  • Loading branch information
tinder-cfuller committed Feb 3, 2025
1 parent ca0ec15 commit 0bd6e98
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
4 changes: 3 additions & 1 deletion Sources/NodesGenerator/Resources/Stencils/Flow.stencil
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ internal final class {{ node_name }}FlowImp: AbstractFlow
super.init(context: context, viewController: viewController)
{% endif %}
}
{% if node_name != "Root" %}

/// Override to take action when started.
{% if node_name == "WindowScene" %}
Expand All @@ -97,9 +98,10 @@ internal final class {{ node_name }}FlowImp: AbstractFlow
override internal func didStart() {
attachRoot()
}
{% elif node_name != "Root" %}
{% else %}
override internal func didStart() {}
{% endif %}
{% endif %}
{% if owns_view or node_name == "WindowScene" %}

/// Required for presentation or containment (do not remove).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ internal final class RootFlowImp: AbstractFlow
super.init(context: context, viewController: viewController)
}

/// Override to take action when started.

/// Required for presentation or containment (do not remove).
internal func getViewController() -> ViewControllable {
viewController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ internal final class RootFlowImp: AbstractFlow
super.init(context: context, viewController: viewController)
}

/// Override to take action when started.

/// Required for presentation or containment (do not remove).
internal func getViewController() -> <viewControllableType> {
viewController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ internal final class RootFlowImp: AbstractFlow
super.init(context: context, viewController: viewController)
}

/// Override to take action when started.

/// Required for presentation or containment (do not remove).
internal func getViewController() -> <viewControllableType> {
viewController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ internal final class RootFlowImp: AbstractFlow
super.init(context: context, viewController: viewController)
}

/// Override to take action when started.

/// Required for presentation or containment (do not remove).
internal func getViewController() -> <viewControllableType> {
viewController
Expand Down

0 comments on commit 0bd6e98

Please sign in to comment.