You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version 1.1.0 has some breaking changes, but they're easily resolvable.
Changes in UIKit presentation (where self is a view controller)
Action
Older Versions
Version 1.1.0
Presenting
Popovers.present(popover)
self.present(popover) or popover.present(in: window)
Replacing
Popovers.replace(oldPopover, with: newPopover)
self.replace(oldPopover, with: newPopover) or oldPopover.replace(with: newPopover)
Dismissing
Popovers.dismiss(popover)
self.dismiss(popover) or popover.dismiss()
Changes in SwiftUI frame tags
Frame tags now support windows automatically.
Action
Older Versions
Version 1.1.0
Saving frame tags
.frameTag("Your Tag", in: currentWindowScene)
.frameTag("Your Tag")
Retrieving frame tags
/// where `currentWindowScene` is the current window scene
letsavedFrame=Popovers.frameTagged("Your Tag", in: currentWindowScene)
/// If outside a popover
WindowReader{ window inletsavedFrame= window.frameTagged("Your Tag")}
/// If inside a popover's view or background
PopoverReader{ context inletsavedFrame= context.window.frameTagged("Your Tag")}
Removed methods
Popovers.prepare is no longer needed and has been removed.
Removed properties
Popover.Attributes.windowScene is no longer needed and has been removed.
The text was updated successfully, but these errors were encountered:
Version 1.1.0 has some breaking changes, but they're easily resolvable.
Changes in UIKit presentation (where
self
is a view controller)Popovers.present(popover)
self.present(popover)
orpopover.present(in: window)
Popovers.replace(oldPopover, with: newPopover)
self.replace(oldPopover, with: newPopover)
oroldPopover.replace(with: newPopover)
Popovers.dismiss(popover)
self.dismiss(popover)
orpopover.dismiss()
Changes in SwiftUI frame tags
Frame tags now support windows automatically.
.frameTag("Your Tag", in: currentWindowScene)
.frameTag("Your Tag")
Removed methods
Popovers.prepare
is no longer needed and has been removed.Removed properties
Popover.Attributes.windowScene
is no longer needed and has been removed.The text was updated successfully, but these errors were encountered: