Skip to content

Releases: danielsaidi/Sheeeeeeeeet

3.2.3

29 Jun 08:46
Compare
Choose a tag to compare
  • This version adds some adjustments and bug fixes from the community.
  • ActionSheetItemCell removes an old fix for separator lines on iOS 10.

3.2.2

04 Apr 07:31
Compare
Choose a tag to compare

This version fixes a bug that caused sheets to get initial empty frames.

3.2.1

13 Sep 15:06
Compare
Choose a tag to compare

🐛 Bug Fixes

This version fixes a bug that could cause multiple dismissals when in popover.

3.2.0

10 Aug 15:23
Compare
Choose a tag to compare

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 ActionSheet init presenter is now optional instead of the default one.

💥 Breaking changes

  • Some deprecated Menu logic had to be removed.
  • The ActionSheet presenter is now optional and is resolved when presenting instead of when creating the sheet.

3.1.6

07 Aug 21:07
Compare
Choose a tag to compare

This version temporarily downgrades the Quick dependency to 3.0 to make Sheeeeeeeeet work with packages that haven't upgraded.

3.1.5

06 Aug 11:45
Compare
Choose a tag to compare

This version updates external dependencies.

3.1.4

06 Aug 11:27
Compare
Choose a tag to compare

This version fixes a bug that caused regular items to not apply right to left text alignment if the device locale requested it.

  • ActionSheetItemCell now uses .natural instead of .left by default.
  • The standard appearance doesn't apply .left to the base cell or section titles.

3.1.1

01 Apr 11:43
Compare
Choose a tag to compare

This version prepares the library for Xcode 11.4 and Swift 5.2 and upgrades external dependencies.

3.1.0

09 Dec 10:03
Compare
Choose a tag to compare

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:

  • ActionSheet has a new ActionSheet.Configuration that replaces Menu.Configuration. You specify it when you create an action sheet.
  • There is a new ActionSheetPresenterBase base class that you can use when creating custom presenters.
  • ActionSheetStandardPresenter and ActionSheetPopoverPresenter inherits ActionSheetPresenterBase.
  • ActionSheetPopoverPresenter has moved its popover delegate logic to another class and no longer inherits NSObject.
  • There is a new DestructiveItem type that makes it possible to have destructive options in a menu, not just destructive buttons.
  • DestructiveItem is automatically styled by the ActionSheetAppearance base class.
  • DestructiveItem is automatically annotated when it's converted to a context menu item.

Deprecations:

  • Menu.Configuration is deprecated and have no affect anymore.
  • Menu.presentAsActionSheet is deprecated. Use toActionSheet instead, then present it.
  • ActionSheet.HeaderViewConfiguration is renamed to ActionSheet.HeaderConfiguration
  • ActionSheet.headerViewConfiguration is renamed to ActionSheet.headerConfiguration
  • ActionSheetDangerItemCell is renamed to ActionSheetDestructiveItemCell

Breaking changes:

I tried but couldn't avoiding breaking changes, since some protocols had to change. Hopefully, you can easily work around these changes:

  • ActionSheetPresenter no longer has an isDismissable property. Instead, use a .nonDismissable configuration when creating an action sheet.
  • ActionSheetPresenter convenience presenters are now part of ActionSheetPresenterBase no longer open for extension.

3.0.8

05 Nov 11:51
Compare
Choose a tag to compare

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.