Skip to content

Commit

Permalink
Fix Initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
TaimurAyaz committed Mar 14, 2024
1 parent bbc3cde commit ea83f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/AsyncPreview/AsyncPreview.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public struct AsyncPreview<V: View, M>: View {
}
}

public init(view: @escaping (M) -> V, model: @escaping () -> M?) {
public init(view: @escaping (M) -> V, model: @escaping () async throws -> M?) {
self.view = view
self.model = model
}
Expand Down

0 comments on commit ea83f60

Please sign in to comment.