Skip to content

v2.0.0

Latest

Choose a tag to compare

@cembaykara cembaykara released this 03 Sep 23:12
2ecf057

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: and with: call sites keep working. On iOS, presentation now goes through an overlay window.
  • Prefer the 2.0.0 tag going forward. The earlier 2.0.0-beta line is the same work, now marked stable.

Docs