{"id":19313642,"url":"https://github.com/geektree0101/gttexture-rxextension","last_synced_at":"2025-08-20T22:25:18.225Z","repository":{"id":56912454,"uuid":"132214663","full_name":"GeekTree0101/GTTexture-RxExtension","owner":"GeekTree0101","description":"Texture RxSwift Interactive Wrapper base on ASControlNode","archived":false,"fork":false,"pushed_at":"2018-08-02T10:56:49.000Z","size":2104,"stargazers_count":11,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-30T01:18:39.763Z","etag":null,"topics":["asyncdisplaykit","ios","rxswift","swift","texture"],"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/GeekTree0101.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-05-05T04:29:24.000Z","updated_at":"2023-04-25T04:58:48.000Z","dependencies_parsed_at":"2022-08-21T03:20:24.670Z","dependency_job_id":null,"html_url":"https://github.com/GeekTree0101/GTTexture-RxExtension","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/GeekTree0101/GTTexture-RxExtension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeekTree0101%2FGTTexture-RxExtension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeekTree0101%2FGTTexture-RxExtension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeekTree0101%2FGTTexture-RxExtension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeekTree0101%2FGTTexture-RxExtension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GeekTree0101","download_url":"https://codeload.github.com/GeekTree0101/GTTexture-RxExtension/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeekTree0101%2FGTTexture-RxExtension/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270109375,"owners_count":24528789,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["asyncdisplaykit","ios","rxswift","swift","texture"],"created_at":"2024-11-10T00:40:33.021Z","updated_at":"2025-08-12T18:06:04.350Z","avatar_url":"https://github.com/GeekTree0101.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"![alt text](https://github.com/GeekTree0101/GTTexture-RxExtension/blob/master/resources/logo.png)\n\n[![CI Status](https://api.travis-ci.org/GeekTree0101/GTTexture-RxExtension.svg?branch=master)](https://travis-ci.org/GeekTree0101/GTTexture-RxExtension)\n[![Version](https://img.shields.io/cocoapods/v/GTTexture-RxExtension.svg?style=flat)](https://cocoapods.org/pods/GTTexture-RxExtension)\n[![License](https://img.shields.io/cocoapods/l/GTTexture-RxExtension.svg?style=flat)](https://cocoapods.org/pods/GTTexture-RxExtension)\n[![Platform](https://img.shields.io/cocoapods/p/GTTexture-RxExtension.svg?style=flat)](https://cocoapods.org/pods/GTTexture-RxExtension)\n\n## Notice\n### GTTexture+RxExtension will replace name as RxCocoa+Texture\n### HERE -\u003e https://github.com/GeekTree0101/RxCocoa-Texture\n\n## Concept\nTexture provides various basic components such as ASTableNode, ASControlNode, ASButtonNode and so on.\n\nref: [Node Subclasses](http://texturegroup.org/docs/node-overview.html)\n\nThis library focused on ASControlNode to make convenience interactive wrappers on ASImageNode(UIImageView), ASNetworkImageNode(UIImageView), ASButtonNode and so on.\n\nmore see:\n[Texture + RxSwift Interactive Wrapper](https://medium.com/@h2s1880/texture-rxswift-interactive-wrapper-d3c9843ed8d7)\n\n## Example\n\n#### Extension\n\n- [ASButtonNode RxExtension Example](https://github.com/GeekTree0101/GTTexture-RxExtension/blob/master/Example/GTTexture-RxExtension/Nodes/ButtonTestNode.swift)\n\n- [ASImageNode RxExtension Example](https://github.com/GeekTree0101/GTTexture-RxExtension/blob/master/Example/GTTexture-RxExtension/Nodes/ImageTestNode.swift)\n\n- [ASNetworkImageNode RxExtension Example](https://github.com/GeekTree0101/GTTexture-RxExtension/blob/master/Example/GTTexture-RxExtension/Nodes/NetworkImageTestNode.swift)\n\n\n- [ASTextNode RxExtension Example](https://github.com/GeekTree0101/GTTexture-RxExtension/blob/master/Example/GTTexture-RxExtension/Nodes/TextTestNode.swift)\n\n- [ASEditableTextNode RxExtension Example](https://github.com/GeekTree0101/GTTexture-RxExtension/blob/master/Example/GTTexture-RxExtension/Nodes/EditableTextTestNode.swift)\n\n- [ASScrollNode](https://github.com/ReactiveX/RxSwift/blob/master/RxCocoa/iOS/UIScrollView%2BRx.swift)\n\n#### ASBinder\n: Subscribed Observer operates asynchronously.\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003eExpectation Flow\u003c/td\u003e\n    \u003ctd align=\"center\"\u003eExpectation UI\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth rowspan=\"9\"\u003e\u003cimg src=\"https://github.com/GeekTree0101/GTTexture-RxExtension/blob/master/resources/expect.png\"\u003e\u003c/th\u003e\n    \u003cth rowspan=\"9\"\u003e\u003cimg src=\"https://github.com/GeekTree0101/GTTexture-RxExtension/blob/master/resources/expect2.png\"\u003e\u003c/th\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nBut, Node dosen't know that event value applied on UI before draw.\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003eUnexpectation Flow\u003c/td\u003e\n    \u003ctd align=\"center\"\u003eUnexpectation UI\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth rowspan=\"9\"\u003e\u003cimg src=\"https://github.com/GeekTree0101/GTTexture-RxExtension/blob/master/resources/badcase.png\"\u003e\u003c/th\u003e\n    \u003cth rowspan=\"9\"\u003e\u003cimg src=\"https://github.com/GeekTree0101/GTTexture-RxExtension/blob/master/resources/badcase2.png\"\u003e\u003c/th\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nIn this case, Node should use setNeedsLayout. but, [bind:_] doesn't call setNeedsLayout automatically.\n\nNormally, you can use like this code\n\n```swift\n// Profile NetworkImage Node is default\n// username, description is Optional\n\n// *** self is usernameNode supernode\nviewModel.username\n         .subscribe(onNext: { [weak self] text in \n            self?.usernameNode.rx.text(Node.usernameAttributes).onNext(text)\n            self?.setNeedsLayout() // Here\n         })\n         .disposed(by: disposeBag)\n```\n\nIf you use ASBinder then you don't need call setNeedsLayout. ASBinder will operates it automatically.\n\n```swift\n// Profile NetworkImage Node is default\n// username, description is Optional\n\n// *** self is usernameNode supernode\nviewModel.username\n         .bind(to: usernameNode.rx.text(Node.usernameAttributes),\n               setNeedsLayout: self) \n         .disposed(by: disposeBag)\n\n// *** self is descriptionNode supernode\nviewModel.desc\n         .bind(to: descriptionNode.rx.text(Node.descAttributes),\n               setNeedsLayout: self) \n         .disposed(by: disposeBag)\n```\n\nIf you don't need setNeedsLayout then just write code like this.\n\n\n```swift\n// setNeedsLayout default is nil!\nviewModel.username\n         .bind(to: usernameNode.rx.text(Node.usernameAttributes) \n         .disposed(by: disposeBag)\n\nviewModel.desc\n         .bind(to: descriptionNode.rx.text(Node.descAttributes)) \n         .disposed(by: disposeBag)\n```\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003eASBinder Flow\u003c/td\u003e\n    \u003ctd align=\"center\"\u003eOutput UI\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth rowspan=\"9\"\u003e\u003cimg src=\"https://github.com/GeekTree0101/GTTexture-RxExtension/blob/master/resources/asbinder_workflow.png\"\u003e\u003c/th\u003e\n    \u003cth rowspan=\"9\"\u003e\u003cimg src=\"https://github.com/GeekTree0101/GTTexture-RxExtension/blob/master/resources/expect2.png\"\u003e\u003c/th\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n- [ASBinder](https://github.com/GeekTree0101/GTTexture-RxExtension/blob/master/Example/GTTexture-RxExtension/ASBinderTestNode.swift)\n\n## Installation\n\nGTTexture-RxExtension is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n#### swift 4.x\n\n```ruby\npod 'GTTexture-RxExtension'\n```\n\n#### [DEPRECATED] swift 3.x\n\n```ruby\npod 'GTTexture-RxExtension', '1.2.0-swift3.x'\n```\n\n## Caution\nThis library has been migrated to Texture 2.7.\nWhen Rx subscribe logic moves from initialization to didLoad method. I no longer faced this problem.\nWhen using RxSwift / RxCocoa, it is safe to subscribe from the didLoad method.\nhttps://github.com/TextureGroup/Texture/issues/977\n\n## Author\n\nGeektree0101, h2s1880@gmail.com\n\n## License\n\nGTTexture-RxExtension 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%2Fgeektree0101%2Fgttexture-rxextension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeektree0101%2Fgttexture-rxextension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeektree0101%2Fgttexture-rxextension/lists"}