- Notifications
You must be signed in to change notification settings - Fork0
A UITableView extension that enables cell insertion from the bottom of a table view.
License
IDN-Media/ios.ReverseExtension
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
UITableView extension that enabled to insert cell from bottom of tableView.
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 tore namespace property, and hiding those complex implementation.In addition, you can rollback to normal behaviour, only removingre namespace.
import UIKitimport ReverseExtensionclassViewController:UIViewController{@IBOutlet weakvartableView:UITableView!overridefunc 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={ scrollViewinprint("scrollViewDidReachTop")} tableView.re.scrollViewDidReachBottom={ scrollViewinprint("scrollViewDidReachBottom")}}}extensionViewController:UITableViewDelegate{ //ReverseExtension also supports handling UITableViewDelegate.func scrollViewDidScroll(_ scrollView:UIScrollView){print("scrollView.contentOffset.y =", scrollView.contentOffset.y)}}
- Swift 5
- Xcode 12 or greater
- iOS 10 or greater
ReverseExtension is available throughCocoaPods. To installit, simply add the following line to your Podfile:
pod"ReverseExtension"
If you’re usingCarthage, simply addReverseExtension to yourCartfile:
github "marty-suzuki/ReverseExtension"Make sure to addReverseExtension.framework to "Linked Frameworks and Libraries" and "copy-frameworks" Build Phases.
TouchVisualizer (Created by@morizotter)
marty-suzuki,s1180183@gmail.com
ReverseExtension is available under the MIT license. See the LICENSE file for more info.
About
A UITableView extension that enables cell insertion from the bottom of a table view.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Languages
- Swift84.2%
- Objective-C11.9%
- Ruby3.9%




