divadretlaw / CustomAlert

🔔 Custom Alert for SwiftUI
MIT License
195 stars 18 forks source link

Support Binding Object support for presenting similar to sheet modifier #14

Closed cse-ariful closed 9 months ago

cse-ariful commented 9 months ago

In the current swiftui sheet that has a modifier that take a binding item as parameter and shows the sheet when the parameter is not nil. It would be very helpful if there is a way to use similar behavior on this library. BTW Thanks a lot for this awesome and handly library

For example:

.sheet(item: $deleteConfirmation, content: { item in })

divadretlaw commented 9 months ago

Good idea. Implemented in 3.2.0