{"id":22192514,"url":"https://github.com/3sidedcube/thundertable","last_synced_at":"2025-07-26T22:32:10.553Z","repository":{"id":21520889,"uuid":"24840049","full_name":"3sidedcube/ThunderTable","owner":"3sidedcube","description":"A declarative wrapper approach to UITableView","archived":false,"fork":false,"pushed_at":"2024-04-17T11:02:11.000Z","size":704,"stargazers_count":21,"open_issues_count":5,"forks_count":4,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-04-24T18:57:50.816Z","etag":null,"topics":["declarative-ui","swift","table","tableview","uitableview"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/3sidedcube.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2014-10-06T09:23:34.000Z","updated_at":"2023-08-18T15:32:26.000Z","dependencies_parsed_at":"2024-04-16T11:36:22.556Z","dependency_job_id":"58e3a257-7bb9-4222-b60a-4380067c96c2","html_url":"https://github.com/3sidedcube/ThunderTable","commit_stats":{"total_commits":404,"total_committers":11,"mean_commits":36.72727272727273,"dds":"0.21287128712871284","last_synced_commit":"bb7bdba3741803c4c0e0d76b17b4b5d8b434a389"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3sidedcube%2FThunderTable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3sidedcube%2FThunderTable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3sidedcube%2FThunderTable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3sidedcube%2FThunderTable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3sidedcube","download_url":"https://codeload.github.com/3sidedcube/ThunderTable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227726381,"owners_count":17810458,"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":["declarative-ui","swift","table","tableview","uitableview"],"created_at":"2024-12-02T12:25:41.809Z","updated_at":"2024-12-02T12:25:42.427Z","avatar_url":"https://github.com/3sidedcube.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Thunder Table\n\n[![Build Status](https://travis-ci.org/3sidedcube/ThunderTable.svg)](https://travis-ci.org/3sidedcube/ThunderTable) [![Swift 5.5](http://img.shields.io/badge/swift-5.5-brightgreen.svg)](https://swift.org/blog/swift-5-5-released/) [![Apache 2](https://img.shields.io/badge/license-Apache%202-brightgreen.svg)](LICENSE.md)\n\nThunder Table is a useful framework which enables quick and easy creation of table views in iOS, making the process of creating complex tables as simple as a few lines of code; and removing the necessity for having long chains of index paths and if statements.\n\n## How It Works\n\nThunder table comprises of two main types of objects:\n\n### Rows\n\nTable rows are objects that conform to the `Row` protocol, this protocol has properties such as: title, subtitle and image which are responsible for providing the content to a table view cell. As this is a protocol any object can conform to it, which allows you to simply send an array of model objects to the table view to display your content.\n\n### Sections\n\nTable sections are objects that conform to the `Section` protocol, most of the time you won't need to implement this protocol yourself as Thunder Table has a convenience class `TableSection` which can be used in most circumstances. However you can implement more complex layouts using this protocol on your own classes.\n\n# Installation\n\nSetting up your app to use ThunderTable is a simple and quick process. You can choose between a manual installation, or use Carthage.\n\n## Carthage\n\n- Add `github \"3sidedcube/ThunderTable\" == 2.0.0` to your Cartfile.\n- Run `carthage update --platform ios --use-xcframeworks` to fetch the framework.\n- Drag `ThunderTable` into your project's _Frameworks and Libraries_ section from the `Carthage/Build` folder (Embed).\n- Add the Build Phases script step as defined [here](https://github.com/Carthage/Carthage#if-youre-building-for-ios-tvos-or-watchos).\n\n## Manual\n\n- Clone as a submodule, or download this repo\n- Import ThunderTable.xcproject into your project\n- Add ThunderTable.framework to your Embedded Binaries.\n- Wherever you want to use ThunderTable use `import ThunderTable`.\n\n# Code Example\n## A Simple Table View Controller\n\nSetting up a table view is massively simplified using thunder table, in fact, we can get a simple table view running with just a few lines of code. To create a custom table view we subclass from `TableViewController`. We then set up our table in the `viewDidLoad:` method. Below is the full code for a table view that displays one row, with text, a subtitle, image and handles table selection by pushing another view.\n\n```\nimport ThunderTable\n\nclass MyTableViewController: TableViewController {\n    \n    override func viewDidLoad() {\n        super.viewDidLoad()\n        \n        let imageRow = TableRow(title: \"Settings\", subtitle: \"Configure your settings\", image: UIImage(named: \"settings-cog\")) { (row, selected, indexPath, tableView) -\u003e (Void) in\n            \n            let settings = SettingsViewController()\n            self.showDetailViewController(settings, sender: self)\n        }\n        \n        let section = TableSection(rows: [imageRow])\n        data = [section]\n    }\n}\n```\n\n# Code level documentation\nDocumentation is available for the entire library in AppleDoc format. This is available in the framework itself or in the [Hosted Version](http://3sidedcube.github.io/iOS-ThunderTable/)\n\t\n# License\nSee [LICENSE.md](LICENSE.md)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3sidedcube%2Fthundertable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3sidedcube%2Fthundertable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3sidedcube%2Fthundertable/lists"}