Skip to content

Commit e4d0f90

Browse files
committed
Add ViewModel class bound to store
1 parent 193dd3c commit e4d0f90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Fruitties/iosApp/iosApp/IOSViewModelStoreOwner.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class IOSViewModelStoreOwner: ObservableObject {
88
private let viewModelStore = Lifecycle_viewmodelViewModelStore()
99

1010
/// This function allows retrieving the androidx ViewModel from the store.
11-
func viewModel<T: AnyObject>(
11+
func viewModel<T: Lifecycle_viewmodelViewModel>(
1212
key: String? = nil,
1313
factory: Lifecycle_viewmodelViewModelProviderFactory,
1414
extras: Lifecycle_viewmodelCreationExtras

0 commit comments

Comments
 (0)