{"id":14966977,"url":"https://github.com/khuong291/binder","last_synced_at":"2025-10-25T17:31:33.887Z","repository":{"id":56903693,"uuid":"120616383","full_name":"khuong291/Binder","owner":"khuong291","description":"🦁\"Hello World\" \u003c-\u003e [🏷, 🏷, 🏷, 🏷]  ","archived":false,"fork":false,"pushed_at":"2018-04-15T08:44:54.000Z","size":202,"stargazers_count":34,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-31T09:51:13.420Z","etag":null,"topics":["binder","binding","reactive-programming","reactiveui","ui"],"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/khuong291.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":"2018-02-07T13:07:57.000Z","updated_at":"2023-11-07T12:47:52.000Z","dependencies_parsed_at":"2022-08-21T02:50:12.040Z","dependency_job_id":null,"html_url":"https://github.com/khuong291/Binder","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khuong291%2FBinder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khuong291%2FBinder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khuong291%2FBinder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khuong291%2FBinder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khuong291","download_url":"https://codeload.github.com/khuong291/Binder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238191228,"owners_count":19431398,"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":["binder","binding","reactive-programming","reactiveui","ui"],"created_at":"2024-09-24T13:37:14.398Z","updated_at":"2025-10-25T17:31:33.413Z","avatar_url":"https://github.com/khuong291.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTX21VMdfHyYy2XUmrBGWjnM9bkoXttqJIVkX0FpX12-t3UoKaQ\" width=\"700\"\u003e\n\n[![Version](https://img.shields.io/cocoapods/v/Binder.svg?style=flat)](http://cocoapods.org/pods/Binder)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Swift 4.0](https://img.shields.io/badge/Swift-4.0-orange.svg?style=flat)](https://developer.apple.com/swift/)\n[![Platform](https://img.shields.io/cocoapods/p/Binder.svg?style=flat)](http://cocoapods.org/pods/Binder)\n[![License](https://img.shields.io/cocoapods/l/Binder.svg?style=flat)](http://cocoapods.org/pods/Binder)\n\n*A lightweight data binding for components on iOS*\n\n## About\n\nA lightweight data binding for components on iOS, easy to use and does not have retain cycle.\n\n\u003cimg src=\"https://github.com/khuong291/Binder/blob/master/Binder.gif\" width=\"250\"\u003e\n\n## Contributing\n\n1. Fork project\n2. Checkout **master** branch\n3. Create **Feature** branch off of the **master** branch\n4. Create awesome feature/enhancement/bug-fix\n5. Optionally create *Issue* to discuss feature\n6. Submit pull request from your **Feature** branch to Binder's **master** branch\n\n## Installation\n\n### [Cocoapods](http://cocoapods.org)\n\n```ruby\nuse_frameworks!\n\npod 'Binder'\n```\n\n### [Carthage](https://github.com/Carthage/Carthage)\nAdd Binder to you `Cartfile`\n```sh\ngithub \"khuong291/Binder\"\n```\nInstall using\n```sh\ncarthage update --platform ios\n```\n\n### Manually\n1. Download and drop ```/Binder``` folder in your project.  \n2. You're done!\n\n## Getting started\n\n### Create a Binder object:\n\n```swift\nprivate let colorBinder: Binder\u003cUIColor, ViewBindingType\u003e = Binder(value: .white, type: .backgroundColor)\nprivate let textBinder: Binder\u003cString, LabelBindingType\u003e = Binder(value: \"Hello\", type: .text)\n```\n\n### You can bind many components as you want:\n\n```swift\ncolorBinder \u003c-\u003e [view1, view2, view3, view4]\ntextBinder \u003c-\u003e label1 \u003c-\u003e label2 \u003c-\u003e label3 \u003c-\u003e label4\n```\n\n### Change the binder value:\n\n```swit\ncolorBinder.value = .green\ntextBinder.value = \"Green Color\"\n```\n\n### If you want to avoid retain cycle, you should remove binder objects:\n\n```swift\ndeinit {\n    colorBinder.remove()\n    textBinder.remove()\n}\n```\n\n### And that's it ;)\n\n\n## Requirements\n\n* iOS 9.0+\n* Xcode 8.0+\n* Swift 3.0+\n\n##  Author\n[Khuong Pham](https://khuong291.github.io/home/) \u003cbr\u003e\n\n## License\nBinder is released under the MIT license.  \nSee LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhuong291%2Fbinder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhuong291%2Fbinder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhuong291%2Fbinder/lists"}