A library to present popovers. Simple, modern, and highly customizable. Not boring!
Finally fixed this really annoying bug.
These 5 lines of code messed up dismissal transitions and animations. Since it's an extension, it even affected apps with Popovers installed even when you didn't import Popovers
.
extension Transaction: Equatable {
public static func == (lhs: Transaction, rhs: Transaction) -> Bool {
lhs.animation == rhs.animation
}
}
Fixes #25, #27, and #33.
Just a minor update to fix this error:
[Popovers] - No
PopoverModel
present in responder chain ((self)) - has the source view been installed into a window? Please file a bug report (https://github.com/aheze/Popovers/issues).
I still wasn't able to get rid of this entirely, but for now I just made Popovers create a new PopoverModel
.
Menus! It's like the system menu but more customizable, and supports iOS 13 too!
String
with AnyHashable
for more flexibility in Attributes.Tag
.Popover.Context
..popover
was attached to NavigationView
.PopoverTemplates
with Popovers.Templates
.Some much-needed additions and fixes. This is a non-breaking change.
UIWindow
.attributes.accessibility
.Thanks again to @ShezHsky for the contributions!
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.
Popovers
class — control the lifecycle with Popover
instance methods.UIResponder
chain.WindowReader
view for easily reading the hosting window in SwiftUI.PopoverReader
+ context.window
instead.context.isDraggingEnabled
to enable or disable dragging at any time.Popovers now supports multiple screens side-by-side! This is a non-breaking change.
Removed unused assets and reorganized the repo.
Forgot to update Cocoapods. This is why you should use Swift Package Manager, everyone!
Merry Christmas! This is the first release of Popovers.
.popover
.