From 606eb0d2c9b98b72a95e946eac0e665f201902ef Mon Sep 17 00:00:00 2001 From: Yi Wang Date: Thu, 27 Oct 2022 21:06:40 -0700 Subject: [PATCH] Add primary generic type to view lifecycle observer --- Sources/IMVVM/View+Lifecycle+Model.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/IMVVM/View+Lifecycle+Model.swift b/Sources/IMVVM/View+Lifecycle+Model.swift index 3755f9c..32d9406 100644 --- a/Sources/IMVVM/View+Lifecycle+Model.swift +++ b/Sources/IMVVM/View+Lifecycle+Model.swift @@ -30,7 +30,7 @@ import SwiftUI /// /// This protocol conforms to `ObservableObject` to support retaining this instance as a `@StateObject` in the /// view that performs the `bind(observer:)` function. -public protocol ViewWithModelLifecycleObserver: ObservableObject { +public protocol ViewWithModelLifecycleObserver: ObservableObject { /// The model of the view that this observer may mutate to provide data to the view. associatedtype ViewModelType: ViewModel