Skip to content

Commit

Permalink
Add primary generic type to view lifecycle observer
Browse files Browse the repository at this point in the history
  • Loading branch information
neakor committed Oct 28, 2022
1 parent 3c0d511 commit 606eb0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/IMVVM/View+Lifecycle+Model.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<ViewModelType>: ObservableObject {
/// The model of the view that this observer may mutate to provide data to the view.
associatedtype ViewModelType: ViewModel

Expand Down

0 comments on commit 606eb0d

Please sign in to comment.