Back to rankings

marty-suzuki/ReverseExtension

Swift

A UITableView extension that enables cell insertion from the bottom of a table view.

uitableviewuitableviewcellreverseextension
Star Growth
Stars
1.7k
Forks
129
Weekly Growth
Issues
13
5001k1.5k
Jan 2023Mar 2024May 2025Jul 2026
README

ReverseExtension

Version Language License Platform Carthage compatible

UITableView extension that enabled to insert cell from bottom of tableView.

Concept

It is difficult to fill a tableview content from bottom. So, ReverseExtension rotate both of UITableView and UITableViewCell like this images.

If you implement those in ViewController, it will have been fat. So, escaping those implementation to re namespace property, and hiding those complex implementation. In addition, you can rollback to normal behaviour, only removing re namespace.

Example

import UIKit
import ReverseExtension

class ViewController: UIViewController {
    @IBOutlet weak var tableView: UITableView!

    override func viewDidLoad() {
        super.viewDidLoad()
        tableView.re.dataSource = self
        tableView.register(UITableViewCell.self, forCellReuseIdentifier: "Cell")

        //You can apply reverse effect only set delegate.
        tableView.re.delegate = self
        tableView.re.scrollViewDidReachTop = { scrollView in
            print("scrollViewDidReachTop")
        }
        tableView.re.scrollViewDidReachBottom = { scrollView in
            print("scrollViewDidReachBottom")
        }
    }
}

extension ViewController: UITableViewDelegate {
    //ReverseExtension also supports handling UITableViewDelegate.
    func scrollViewDidScroll(_ scrollView: UIScrollView) {
        print("scrollView.contentOffset.y =", scrollView.contentOffset.y)
    }
}

Requirements

  • Swift 5
  • Xcode 12 or greater
  • iOS 10 or greater

Installation

CocoaPods

ReverseExtension is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "ReverseExtension"

Carthage

If you’re using Carthage, simply add ReverseExtension to your Cartfile:

github "marty-suzuki/ReverseExtension"

Make sure to add ReverseExtension.framework to "Linked Frameworks and Libraries" and "copy-frameworks" Build Phases.

Special Thanks

TouchVisualizer (Created by @morizotter)

Author

marty-suzuki, s1180183@gmail.com

License

ReverseExtension is available under the MIT license. See the LICENSE file for more info.

Related repositories
Juanpe/SkeletonView

☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting

SwiftMIT Licenseswiftskeleton
12.9k1.1k
xmartlabs/Eureka

Elegant iOS form builder in Swift

SwiftMIT Licenseiosforms
eurekacommunity.github.io
11.8k1.3k
marcosgriselli/ViewAnimator

ViewAnimator brings your UI to life with just one line

SwiftMIT Licenseiosswift
7.3k486
SwipeCellKit/SwipeCellKit

Swipeable UITableViewCell/UICollectionViewCell based on the stock Mail.app, implemented in Swift.

SwiftOtherswiftuikit
jerkoch.com/2017/02/07/swiper-no-swiping.html
6.3k815
youngsoft/MyLinearLayout

MyLayout is a powerful iOS UI framework implemented by Objective-C. It integrates the functions with Android Layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,PathLayout,GridLayout,LayoutSizeClass to build your App 自动布局 UIView UITableView UICollectionView RTL

Objective-CMIT Licenseautolayoutandroid
4.4k888
Yalantis/Persei

Animated top menu for UITableView / UICollectionView / UIScrollView written in Swift

SwiftMIT Licenseiosswift
yalantis.com
3.4k309
tigerAndBull/TABAnimated

A skeleton screen loading framework based on native for iOS. (一个由iOS原生组件映射出骨架屏的框架,包含快速植入,低耦合,兼容复杂视图等特点,提供国内主流骨架屏动画的加载方案,同时支持上拉加载更多、自定制动画。)

Objective-CMIT Licenseobjective-cios
3.4k539
HamzaGhazouani/HGPlaceholders

Nice library to show placeholders and Empty States for any UITableView/UICollectionView in your project

SwiftMIT Licenseplaceholderempty
2.2k158
gskbyte/GSKStretchyHeaderView

A generic stretchy header for UITableView and UICollectionView

Objective-CMIT Licensestretchy-headersinterface-builder
1.7k191
dusty-commits/Closures

Swifty closures for UIKit and Foundation

SwiftMIT Licenseswiftclosures
1.7k169
vhesener/Closures

Swifty closures for UIKit and Foundation

SwiftMIT Licenseswiftclosures
1.7k169
tmdvs/TDBadgedCell

TDBadgedCell is a table view cell class that adds a badge, similar to the badges in Apple's own apps

SwiftMIT Licenseuitableviewui
tmdvs.me
1.4k180