SWTableViewCell brings swipeable utility actions to UITableViewCell, mimicking the native Mail app’s left/right swipe behaviors on iOS. It wraps a cell’s content in a scrollable container so revealing actions feels smooth and physics-correct, while keeping layout compatibility with Auto Layout. Developers configure arrays of utility buttons for either side and receive delegate callbacks when a button is tapped or the cell’s state changes. The library manages gesture conflicts, ensures only one cell is open at a time if desired, and provides helpers to programmatically show/hide utility views. Because it’s built as a drop-in subclass, adoption typically requires minimal refactoring of existing table code. It became a staple for production apps before Apple introduced first-party swipe actions, and it remains useful where full visual customization or cross-version consistency is needed.
Features
- Swipe-able content view exposing utility buttons on left and/or right sides
- Dynamic button scaling to accommodate multiple buttons on one side
- Smart touch handling to prevent cell selection when utility buttons are visible
- Configurable utility buttons with titles or icons and custom RGB background colors
- Compatible with both default and custom cells, including Interface Builder via subclassing
- Designed for ease of integration and available via CocoaPods in addition to manual inclusion