Open CleverLemming1337 opened 1 month ago
Or this (functionally equal to the previous):
var body: some View {
Button("Tap me!") {
Notification(color:spinner:progressBar:...) {
Text("Hello")
}.present(duration:)
}
}
Oh, excuse me, I didn't see NotificationPresenter.presentSwiftView(styleName:viewBuilder:completion:)
.
Yep that allows you to present SwiftUI views. I thought about adding the Alert pattern also. I renamed the issue accordingly.
It's a bit confusing to me that you don't give SwiftUI views to the function. Maybe implement something like this (similar to Alert and Sheet):
Or:
Maybe it's just me but I would prefer one of these solutions.