PeekDialog 2.0.0
Stacked notifications now available for all
What’s new
- Window-based presentation (iOS). Dialogs show in an overlay window above sheets, alerts, and the rest of your UI. Content can update live while the dialog is up.
- Stacked notifications (iOS). Use
peekDialog(items:)to queue multiple dialogs. The top two stay visible, and dismissing one brings the next forward. - Opt out of swipe-to-dismiss. Add
.peekInteractiveDismissDisabled()inside the content closure when you don’t want drag-to-dismiss. - Fewer update glitches. Presentation no longer relies on side effects during view updates. Live content changes are less likely to break drag-to-dismiss or trip SwiftUI’s “publishing from view updates” warning.
Notes
- No breaking API changes. Your existing
isPresented:andwith:call sites keep working. On iOS, presentation now goes through an overlay window. - Prefer the
2.0.0tag going forward. The earlier2.0.0-betaline is the same work, now marked stable.