{"id":15037426,"url":"https://github.com/marty-suzuki/reverseextension","last_synced_at":"2025-05-15T16:09:59.923Z","repository":{"id":47099051,"uuid":"83518687","full_name":"marty-suzuki/ReverseExtension","owner":"marty-suzuki","description":"A UITableView extension that enables cell insertion from the bottom of a table view.","archived":false,"fork":false,"pushed_at":"2021-10-22T00:57:45.000Z","size":12646,"stargazers_count":1677,"open_issues_count":13,"forks_count":130,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-04-07T21:15:21.421Z","etag":null,"topics":["extension","reverse","uitableview","uitableviewcell"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marty-suzuki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-01T06:10:45.000Z","updated_at":"2025-02-27T05:19:29.000Z","dependencies_parsed_at":"2022-08-24T05:20:36.654Z","dependency_job_id":null,"html_url":"https://github.com/marty-suzuki/ReverseExtension","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marty-suzuki%2FReverseExtension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marty-suzuki%2FReverseExtension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marty-suzuki%2FReverseExtension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marty-suzuki%2FReverseExtension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marty-suzuki","download_url":"https://codeload.github.com/marty-suzuki/ReverseExtension/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247730070,"owners_count":20986404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["extension","reverse","uitableview","uitableviewcell"],"created_at":"2024-09-24T20:34:37.071Z","updated_at":"2025-04-07T21:15:38.950Z","avatar_url":"https://github.com/marty-suzuki.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ReverseExtension\n\n[![Version](https://img.shields.io/cocoapods/v/ReverseExtension.svg?style=flat)](http://cocoapods.org/pods/ReverseExtension)\n[![Language](http://img.shields.io/badge/language-swift-brightgreen.svg?style=flat\n)](https://developer.apple.com/swift)\n[![License](https://img.shields.io/cocoapods/l/ReverseExtension.svg?style=flat)](http://cocoapods.org/pods/ReverseExtension)\n[![Platform](https://img.shields.io/cocoapods/p/ReverseExtension.svg?style=flat)](http://cocoapods.org/pods/ReverseExtension)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\nUITableView extension that enabled to insert cell from bottom of tableView.\n\n\u003cimg src=\"./Images/bottom_insert.gif\" width=\"300\"\u003e\n\n## Concept\n\nIt is difficult to fill a tableview content from bottom.\nSo, ReverseExtension rotate both of UITableView and UITableViewCell like this images.\n\n\u003cimg src=\"./Images/tableview1.png\" width=\"21%\"\u003e\n\u003cimg src=\"./Images/tableview2.png\" width=\"35%\"\u003e\n\u003cimg src=\"./Images/tableview3.png\" width=\"21%\"\u003e\n\u003cimg src=\"./Images/tableview4.png\" width=\"21%\"\u003e\n\nIf you implement those in ViewController, it will have been fat.\nSo, escaping those implementation to `re` namespace property, and hiding those complex implementation.\nIn addition, you can rollback to normal behaviour, only removing `re` namespace.\n\n## Example\n\n```swift\nimport UIKit\nimport ReverseExtension\n\nclass ViewController: UIViewController {\n    @IBOutlet weak var tableView: UITableView!\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n        tableView.re.dataSource = self\n        tableView.register(UITableViewCell.self, forCellReuseIdentifier: \"Cell\")\n\n        //You can apply reverse effect only set delegate.\n        tableView.re.delegate = self\n        tableView.re.scrollViewDidReachTop = { scrollView in\n            print(\"scrollViewDidReachTop\")\n        }\n        tableView.re.scrollViewDidReachBottom = { scrollView in\n            print(\"scrollViewDidReachBottom\")\n        }\n    }\n}\n\nextension ViewController: UITableViewDelegate {\n    //ReverseExtension also supports handling UITableViewDelegate.\n    func scrollViewDidScroll(_ scrollView: UIScrollView) {\n        print(\"scrollView.contentOffset.y =\", scrollView.contentOffset.y)\n    }\n}\n```\n\n## Requirements\n\n- Swift 5\n- Xcode 12 or greater\n- iOS 10 or greater\n\n## Installation\n\n#### CocoaPods\n\nReverseExtension is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"ReverseExtension\"\n```\n\n#### Carthage\n\nIf you’re using [Carthage](https://github.com/Carthage/Carthage), simply add\nReverseExtension to your `Cartfile`:\n\n```\ngithub \"marty-suzuki/ReverseExtension\"\n```\n\nMake sure to add `ReverseExtension.framework` to \"Linked Frameworks and Libraries\" and \"copy-frameworks\" Build Phases.\n\n## Special Thanks\n\n[TouchVisualizer](https://github.com/morizotter/TouchVisualizer) (Created by [@morizotter](https://github.com/morizotter))\n\n## Author\n\nmarty-suzuki, s1180183@gmail.com\n\n## License\n\nReverseExtension is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarty-suzuki%2Freverseextension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarty-suzuki%2Freverseextension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarty-suzuki%2Freverseextension/lists"}