{"id":18810000,"url":"https://github.com/aryaxt/binder","last_synced_at":"2026-01-10T13:30:17.619Z","repository":{"id":69267897,"uuid":"57854887","full_name":"aryaxt/Binder","owner":"aryaxt","description":null,"archived":false,"fork":false,"pushed_at":"2016-05-02T15:45:33.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-29T23:22:17.810Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/aryaxt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-01T22:41:36.000Z","updated_at":"2016-05-01T22:46:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"cb2b56e4-7692-4220-a4e9-e59180c22ff2","html_url":"https://github.com/aryaxt/Binder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aryaxt%2FBinder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aryaxt%2FBinder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aryaxt%2FBinder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aryaxt%2FBinder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aryaxt","download_url":"https://codeload.github.com/aryaxt/Binder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239743943,"owners_count":19689572,"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":[],"created_at":"2024-11-07T23:18:28.902Z","updated_at":"2026-01-10T13:30:17.567Z","avatar_url":"https://github.com/aryaxt.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Binder\n[![Build Status](https://api.travis-ci.org/aryaxt/Binder.svg)](https://api.travis-ci.org/aryaxt/Binder)\n[![Version](http://cocoapod-badges.herokuapp.com/v/Binder/badge.png)](http://cocoadocs.org/docsets/Binder)\n\nA simple UI Binder for swift \n\n*** Still in development, DO NOT USE ***\n\n#### UIControl\nBind to any existing UIControlEvents\n```swift\nanyUiControl.bindControlEvent(.AllEvents) { print(\"Any Event\") }\n```\n#### UIButton\n```swift\nbutton.bindTap { print(\"tap on button\") }\n```\n#### UITextField\n```swift\ntextField.bindTextChange { print(\"text value: \\($0)\") }\n```\n#### UISegmentedControl\n```swift\nsegmentedControl.bindValueChange { print(\"selected index \\($0)\") }\n```\n#### UITableView\nPopulate a table, this will use the class name as the cell identifier\n```swift\ntableview\n  .bindNumberOfRowsForSection { _ in self.tableData.count }\n  .bindCell(AwesomeCell.self) { indexPath, cell in cell.configure(self.tableData[indexPath.row]) }\n```\nProvide custom identifier for the cells\n```swift\ntableview\n  .bindNumberOfRowsForSection { _ in self.tableData.count }\n  .bindCellIdentifier { _ in \"AwesomeCellNumber2\" }\n  .bindCell(AwesomeCell.self) { indexPath, cell in cell.configure(self.tableData[indexPath.row]) }\n```\nCustomize number of section\n```swift\ntableview\n  .bindNumberOfSections { return 2 }\n  .bindNumberOfRowsForSection { _ in self.tableData.count }\n  .bindCell(AwesomeCell.self) { indexPath, cell in cell.configure(self.tableData[indexPath.row]) }\n```\nSelection \u0026 Deselection\n```swift\ntableview\n  .bindNumberOfRowsForSection { _ in self.tableData.count }\n  .bindCell(AwesomeCell.self) { indexPath, cell in cell.configure(self.tableData[indexPath.row]) }\n  .bindSelection { indexPath in print(\"selected row: \\(self.tableData[indexPath.row]))\") }\n  .bindDeselection { indexPath in print(\"deselected row: \\(self.tableData[indexPath.row]))\") }\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faryaxt%2Fbinder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faryaxt%2Fbinder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faryaxt%2Fbinder/lists"}