Skip to content

1.8.0

Compare
Choose a tag to compare
@jerkoch jerkoch released this 17 Apr 22:44
· 145 commits to develop since this release
8b04497

Added

  • New targetOverscrollElasticity property in SwipeExpansionStyle to support customization of elasticity when dragging past the expansion target. (#30)
  • New swipeOffset property and setSwipeOffset(_:animated:completion:) in SwipeTableViewCell 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 parent UITableView performs layout (#28), better support for UITableView frame/bounds changes are required. The UITableView frame/bounds may change during rotation or whenever its parent view frame changes. The SwipeActionsView 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 the SwipeActionButtonWrapperView flexes with its parent SwipeActionsView, 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 the UITableView performs layout on it's cell subviews.