Responder-Based Model
Popovers now fully supports multiple windows and won't interfere with the status bar! This is a breaking change — for migrating, check out the guide. Thanks to @ShezHsky for the pull request.
- No more overlaying container window — popovers are now presented directly on the topmost view controller.
- No more static
Popovers
class — control the lifecycle withPopover
instance methods. - Popover models and frame tags are now tied to specific windows and stored in the
UIResponder
chain. - New
WindowReader
view for easily reading the hosting window in SwiftUI. - If inside a popover view or background, use
PopoverReader
+context.window
instead. - Set
context.isDraggingEnabled
to enable or disable dragging at any time.