SwipeCellKit adheres to Semantic Versioning.
- Swift 4.1 Support. (#181)
- Allow mix use of only image or text label actions. (#139)
- Cancel pan gesture (swipe) when no actions exist for that swipe orientation. (#163, #172)
- Fix issue where multiple
SwipeTableViewCellscan be swipped simultaneously. (#57) - Fix issue where selected state is lost when swipping cell. (#58)
- Add support for safeAreaInsets (i.e. iPhone X) (#159, #119)
- Update README to fix an error with how to fulfill a delete row operation
- Fix crash related to
UIAccessablilityCustomActionif no accessability text is set on action image, or action label. (#156) - Fix issue where SwipeActionButton.maximumButtonWidth is not respected when its value is below the default/computed minimumButtonWidth (#150)
- Fix issue where swipe actions intermittently on iOS 11.2 were not displayed correctly when cell is swiped. (#126)
- Add Swift 4 support
- New
highlightedTextColorproperty onSwipeAction. (#88)
- Fix issue where swipe actions intermittently were not displayed when cell is swiped. (#85)
- 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-
SwipeTableViewCellwithin aUITableViewinterfered withdidSelectRowAtIndexPath. This was caused by the assumption all cells in a UITableView extendSwipeTableViewCell. (#37) (#43) - Add protection against
superviewinpoint(inside:)beingniland crashing. (#46)
- New
targetOverscrollElasticityproperty inSwipeExpansionStyleto support customization of elasticity when dragging past the expansion target. (#30) - New
swipeOffsetproperty andsetSwipeOffset(_:animated:completion:)inSwipeTableViewCellto 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
SwipeTableViewCellsno longer reset to center when the parentUITableViewperforms layout (#28), better support forUITableViewframe/bounds changes are required. TheUITableViewframe/bounds may change during rotation or whenever its parent view frame changes. TheSwipeActionsViewwas already using auto layout to resize appropriately, but its button (and wrapper) subviews were using constraints derived from the default autoresizingMask. This change ensures theSwipeActionButtonWrapperViewflexes 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
.resetstyle action fulfillment. (#27) - Fix to adjust the cell's new frame origin
xvalue when it's already active. This ensures a swiped cell is not reset to center whenever theUITableViewperforms 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
expansionStyleis set tonil.
- Fully customizable expansion styles. See README documentation for more details. (#14)
SwipeTableViewDelegatedelegate methods forwillBeginEditingRowAtanddidEndEditingRowAt. (#18)
- Removed action view cleanup when cell moved moved off UIWindow. Initially, this was added to prevent retain cycles caused by
SwipeActionhandlers 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.didMoveToSuperviewcausing accessory taps to be ignored. (#16) - The previous action button
textColorfix 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
textColorproperty inSwipeActionwas not being applied.
- Accessibility support. (#5)
- New
expansionDelegateproperty inSwipeTableOptionsproviding ability to customize expansion behavior. See the README and API documentation for more details. - New
transitionDelegateproperty inSwipeActionproviding 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
transitionDelegateandexpansionDelegate.
- Internal
SwipeActionButtonlayout 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
SwipeTableOptionsto for more layout customization. (#7) - Example app now lets you choose between buttons with title + image, title only, and image only
- Call
resetat 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
SwipeTableViewCellDelegatecompiler error in README example.
- Update
SwipeTableViewCellDelegateallowingeditActionsForRowAtto returnniland 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
SwipeActionsViewholding 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
SwipeTableViewCellDelegatedefault implementation not exposed aspublic.
Initial release!