Skip to content

Commit

Permalink
Add public init for modal cover model
Browse files Browse the repository at this point in the history
  • Loading branch information
Šimon Šesták committed Nov 7, 2024
1 parent a682316 commit 2278df1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@ public struct ModalCoverModel<Destination: Hashable & Identifiable>: Identifiabl
public var id: Destination.ID {
destination.id
}

public init(destination: Destination, style: ModalCoverModelStyle) {
self.destination = destination
self.style = style
}
}

0 comments on commit 2278df1

Please sign in to comment.