Added
- 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.
Fixed
- 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.