Skip to content

Commit

Permalink
Merge pull request #26 from splendo/fix/25-update-support-baselifecyc…
Browse files Browse the repository at this point in the history
…levm

Update support BaseLifecycleViewModel
  • Loading branch information
corrado4eyes authored Oct 10, 2022
2 parents c51b331 + 39e57a6 commit 5eea33b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class HomeRoutingNavigator {
And view model holding this state:

```Kotlin
class SomeViewModel : BaseViewModel() {
class SomeViewModel : BaseLifecycleViewModel() {

private val navigator = HomeRoutingNavigator()

Expand Down
2 changes: 2 additions & 0 deletions stencils/ContainerView.stencil
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import SwiftUI
import class {{ argument.sharedFrameworkName }}.AlertPresenter
import class {{ argument.sharedFrameworkName }}.HUD
{% if argument.includeDatePicker %}
import class {{ argument.sharedFrameworkName }}.DateTimePickerPresenter
{% endif %}

struct ContainerView: UIViewControllerRepresentable {

Expand Down
2 changes: 1 addition & 1 deletion stencils/LifecycleViewModel.stencil
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import SwiftUI
import {{ argument.sharedFrameworkName }}

class LifecycleViewModel<VM: BaseViewModel> {
class LifecycleViewModel<VM: BaseLifecycleViewModel> {

let viewModel: VM
let containerView: ContainerView?
Expand Down

0 comments on commit 5eea33b

Please sign in to comment.