SwipeCellKit
adheres to Semantic Versioning.
- Fix issue related to pixel misalignment for action buttons. (#50)
- Fix crash on iOS 10.0.0 where UIFeedbackGenerator crashed on non-haptic supported devices. (#51)
- Fix issue related to iOS 11. SwipeCellKit was inadvertently enabling/disabling various gestures on UITableView, including system level ones in hopes of disabling 3D Touch on swiped UITableViewCells. Developers must now handle the disabling/enabling of 3D touch when cell is swiped with the aid of
SwipeTableViewCellDelegate
. (#48)
- Added highlighted background color for action button. (#52)
- Correctly setting the parents project to support iOS 9.0+. (#40)
- Fix issue where using non-
SwipeTableViewCell
within aUITableView
interfered withdidSelectRowAtIndexPath
. This was caused by the assumption all cells in a UITableView extendSwipeTableViewCell
. (#37) (#43) - Add protection against
superview
inpoint(inside:)
beingnil
and crashing. (#46)
- New
targetOverscrollElasticity
property inSwipeExpansionStyle
to support customization of elasticity when dragging past the expansion target. (#30) - New
swipeOffset
property andsetSwipeOffset(_:animated:completion:)
inSwipeTableViewCell
to support programmatically setting the swipe offset. (#19) - Add support for relayout of action buttons if cell frame changes while swiped (ie. rotation/tableview resizing). Now that active/swiped
SwipeTableViewCells
no longer reset to center when the parentUITableView
performs layout (#28), better support forUITableView
frame/bounds changes are required. TheUITableView
frame/bounds may change during rotation or whenever its parent view frame changes. TheSwipeActionsView
was already using auto layout to resize appropriately, but its button (and wrapper) subviews were using constraints derived from the default autoresizingMask. This change ensures theSwipeActionButtonWrapperView
flexes with its parentSwipeActionsView
, and button subviews pin to the appropriate left/right side of their wrapper view depending on orientation.
- Fix issue where mask was not removed when using
.reset
style action fulfillment. (#27) - Fix to adjust the cell's new frame origin
x
value when it's already active. This ensures a swiped cell is not reset to center whenever theUITableView
performs layout on it's cell subviews.
- Support for iOS 9. Thanks to @DMCApps!
- Showcase link in the README to track apps using the framework. Please submit a pull request to add your app!
- The Advanced Customization section in the README and moved it to a separate file.
- The Requirements section in the README to reflect iOS 9 support.
- Issue where transitions are messed up when
expansionStyle
is set tonil
.
- Fully customizable expansion styles. See README documentation for more details. (#14)
SwipeTableViewDelegate
delegate methods forwillBeginEditingRowAt
anddidEndEditingRowAt
. (#18)
- Removed action view cleanup when cell moved moved off UIWindow. Initially, this was added to prevent retain cycles caused by
SwipeAction
handlers capturingself
. Instead, it should be left up to the implementor to use[weak self]
in handler implementations or ensure the action view is hidden before dismissing/popping a temporary parent view controller. I've verified this behaves the same way asUITableViewRowAction
. (#23) - Issue where the table view pan gesture was being disabled along with all other table view gestures when a cell was swiped. (#21)
- Issue where the destructive action animation relied on the table view to animate covering the deleted cell with the cells below it in order for its height to appear to shrink. If the cell being deleted was the last row, or the remaining cells below were not tall enough, the height of the deleted cell would not appear to shrink. Fixed by adding a mask to cell and animate its height to zero. (#15)
- Missing call to
super.didMoveToSuperview
causing accessory taps to be ignored. (#16) - The previous action button
textColor
fix to re-add also setting the tint color to the text color. The tint color effects button images rendered as template images.
- Ability to programmatically show swipe actions. (#13)
- Support for action background effect. (#10)
- The expansion threshold for selection-style was always 50% of the screen width regardless of if the action view width was larger.
- Issue where the
textColor
property inSwipeAction
was not being applied.
- Accessibility support. (#5)
- New
expansionDelegate
property inSwipeTableOptions
providing ability to customize expansion behavior. See the README and API documentation for more details. - New
transitionDelegate
property inSwipeAction
providing ability to customize transition behavior of individual actions as the swipe gesture is performed. See the README and API documentation for more details. (#9) - Example app now lets you choose circular button style to demo the new
transitionDelegate
andexpansionDelegate
.
- Internal
SwipeActionButton
layout to separate the background color from the actualUIButton
- Active animations were not always stopped when a new pan gesture began.
- Images are not aligned properly on buttons without a title. (#6)
- New options in
SwipeTableOptions
to for more layout customization. (#7) - Example app now lets you choose between buttons with title + image, title only, and image only
- Call
reset
at the end of a destructive swipe to ensure the tableView gestures are re-enabled (#3). - Feedback was not being generated when swiping from non-centered state
SwipeTableViewCellDelegate
compiler error in README example.
- Update
SwipeTableViewCellDelegate
allowingeditActionsForRowAt
to returnnil
and prevent swiping in the supplied orientation (#2).
- Example app now lets you choose to disable swiping right.
- Expose
hideSwipe(animated:)
to allow the cell to be programmatically hidden.
- Memory leak in
SwipeActionsView
holding reference to actions causing a retain cycle.
This release is mainly for Swift Package Manager support and some minor documentation clean up.
- Swift Package Manager support.
- A CHANGELOG to the project documenting each official release.
- Examples of available transitions and expansions to the README.
- The
SwipeTableViewCellDelegate
default implementation not exposed aspublic
.
Initial release!