Releases: danielsaidi/Sheeeeeeeeet
3.2.3
3.2.2
This version fixes a bug that caused sheets to get initial empty frames.
3.2.1
🐛 Bug Fixes
This version fixes a bug that could cause multiple dismissals when in popover.
3.2.0
This version makes it possible to build Sheeeeeeeeet from Xcode 13.
It does so by removing UIApplication.shared dependencies and instead use the view controller.
These changes required the removal of some deprecated Menu logic.
💡 Behavior changes
- The
ActionSheetinit presenter is now optional instead of the default one.
💥 Breaking changes
- Some deprecated
Menulogic had to be removed. - The
ActionSheetpresenteris now optional and is resolved when presenting instead of when creating the sheet.
3.1.6
This version temporarily downgrades the Quick dependency to 3.0 to make Sheeeeeeeeet work with packages that haven't upgraded.
3.1.5
This version updates external dependencies.
3.1.4
This version fixes a bug that caused regular items to not apply right to left text alignment if the device locale requested it.
ActionSheetItemCellnow uses.naturalinstead of.leftby default.- The standard appearance doesn't apply
.leftto the base cell or section titles.
3.1.1
This version prepares the library for Xcode 11.4 and Swift 5.2 and upgrades external dependencies.
3.1.0
Thanks to @BinaryDennis, this version adds support for auto dismissing context menus and action sheets when an app is sent to the background.
New stuff:
ActionSheethas a newActionSheet.Configurationthat replacesMenu.Configuration. You specify it when you create an action sheet.- There is a new
ActionSheetPresenterBasebase class that you can use when creating custom presenters. ActionSheetStandardPresenterandActionSheetPopoverPresenterinheritsActionSheetPresenterBase.ActionSheetPopoverPresenterhas moved its popover delegate logic to another class and no longer inheritsNSObject.- There is a new
DestructiveItemtype that makes it possible to have destructive options in a menu, not just destructive buttons. DestructiveItemis automatically styled by theActionSheetAppearancebase class.DestructiveItemis automatically annotated when it's converted to a context menu item.
Deprecations:
Menu.Configurationis deprecated and have no affect anymore.Menu.presentAsActionSheetis deprecated. UsetoActionSheetinstead, then present it.ActionSheet.HeaderViewConfigurationis renamed toActionSheet.HeaderConfigurationActionSheet.headerViewConfigurationis renamed toActionSheet.headerConfigurationActionSheetDangerItemCellis renamed toActionSheetDestructiveItemCell
Breaking changes:
I tried but couldn't avoiding breaking changes, since some protocols had to change. Hopefully, you can easily work around these changes:
ActionSheetPresenterno longer has anisDismissableproperty. Instead, use a.nonDismissableconfiguration when creating an action sheet.ActionSheetPresenterconvenience presenters are now part ofActionSheetPresenterBaseno longeropenfor extension.
3.0.8
This version adjusts the secondary action signature to also provide the affected item. It's a breaking change, but a small one, so deal with it I guess ¯\_(ツ)_/¯
This version also makes the ActionSheetItemHandler protocol implementations open so they're possible to override.