SwipeCellKit v1.8.0 Release Notes
-
โ Added
- ๐ 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.
๐ Fixed
- ๐ 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.
- ๐ New