Add swipe-left-to-delete and swipe-right-to-archive buttons to any iOS table view with a single class name change.
Implement a Spotify-style swipe row with a 3D rotation reveal animation and custom icon buttons on both sides of a list row.
Attach custom UIView buttons to list rows and use the delegate pattern to delay creating those buttons until they are actually swiped.
MGSwipeTableCell is an iOS library that adds swipe-to-reveal buttons to list rows in an iPhone or iPad app. In iOS apps, a list view is built from rows called table cells. This library lets developers attach action buttons to those rows, so that swiping left or right on a row reveals buttons like Delete, Archive, or any other custom action, similar to how Apple's own Mail app works. The library supports several visual styles for how the buttons appear when a row is swiped. Border, clip, 3D rotation, static, and drag transitions are all available, each giving a different look and feel to the reveal animation. Developers can place buttons on the left side, the right side, or both, and can choose different transition styles for each side independently. Setting it up requires changing a single word in the code: the table cell class name is changed from UITableViewCell to MGSwipeTableCell, and that one substitution is enough to get basic swipe behavior working. Buttons are assigned as a simple list and can be standard text buttons, icon buttons, or any custom UIView the developer provides. The library also supports an optional delegate pattern, which delays creating buttons until they are actually needed, keeping memory usage lower in long lists. The library works with Objective-C and Swift, can be installed through CocoaPods, Carthage, or Swift Package Manager, and is compatible with all the different ways iOS developers create table cells: predefined system styles, code-only cells, cells from interface files, and prototype cells in storyboards. It has been tested on iOS 7 through iOS 14 on both iPhone and iPad. Demo projects included in the repository show swipe behavior modeled after Apple Mail and Spotify.
← mortimergoro on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.