Skip to content

1.1.0

Choose a tag to compare

@danielsaidi danielsaidi released this 10 Jan 14:57
· 397 commits to master since this release

This version increases the action sheet integrity by restricting what you can do with it. This involves some breaking changes, but they should not affect you. If you think any new rule is bad or affect you, please let me know.

New Features

@sebbo176 has added support for subtitles in the various select items, which now also changes the cell style of an item if the subtitle is set. He has also added an unselected icon to the select items, which means that you can now have images for unselected items as well (e.g. an unchecked checkbox).

Breaking Changes - ActionSheet:

  • The items and buttons properties are now internal(set), which means that they can only be set with init(...) or with setup(items:). This protects the integrity of the item and button separation logic.

  • The code no longer contains any didSet events, since these events called the same functionality many times. Call refresh if you change any outlets manually from now on.

  • Since the didSet events have been removed, refreshHeaderVisibility is only called once and has therefore been moved into refreshHeader.

  • Since the didSet events have been removed, refreshButtonsVisibility is now only called once and has therefore been moved into refreshButtons.

  • A small delay in handleTap(on:), that should not be needed, has been removed. Let me know if it causes any side-effects.