{"id":17463869,"url":"https://github.com/linxunfeng/swiftytraceablevalue","last_synced_at":"2025-03-28T07:13:49.065Z","repository":{"id":62457028,"uuid":"435902113","full_name":"LinXunFeng/SwiftyTraceableValue","owner":"LinXunFeng","description":"优雅的可比较类型","archived":false,"fork":false,"pushed_at":"2021-12-09T01:06:56.000Z","size":31,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-02T07:44:52.188Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinXunFeng.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":"2021-12-07T14:00:52.000Z","updated_at":"2023-03-04T03:25:55.000Z","dependencies_parsed_at":"2022-11-02T00:17:49.802Z","dependency_job_id":null,"html_url":"https://github.com/LinXunFeng/SwiftyTraceableValue","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/LinXunFeng%2FSwiftyTraceableValue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinXunFeng%2FSwiftyTraceableValue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinXunFeng%2FSwiftyTraceableValue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinXunFeng%2FSwiftyTraceableValue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinXunFeng","download_url":"https://codeload.github.com/LinXunFeng/SwiftyTraceableValue/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245984590,"owners_count":20704798,"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-10-18T10:44:01.362Z","updated_at":"2025-03-28T07:13:49.047Z","avatar_url":"https://github.com/LinXunFeng.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftyTraceableValue\n\n![Author](https://img.shields.io/badge/author-LinXunFeng-blue.svg?style=flat-square)\n[![CI Status](https://img.shields.io/travis/LinXunFeng/SwiftyTraceableValue.svg?style=flat)](https://travis-ci.org/LinXunFeng/SwiftyTraceableValue)\n[![Version](https://img.shields.io/cocoapods/v/SwiftyTraceableValue.svg?style=flat)](https://cocoapods.org/pods/SwiftyTraceableValue)\n[![License](https://img.shields.io/cocoapods/l/SwiftyTraceableValue.svg?style=flat)](https://cocoapods.org/pods/SwiftyTraceableValue)\n[![Platform](https://img.shields.io/cocoapods/p/SwiftyTraceableValue.svg?style=flat)](https://cocoapods.org/pods/SwiftyTraceableValue)\n![visitors](https://visitor-badge.glitch.me/badge?page_id=LinXunFeng.SwiftyTraceableValue)\n\n\n\n## Article\n\n掘金：[ReactorKit + RxDataSources 列表多次刷新的解决方案](https://juejin.cn/post/7039367289170296863)\n\n\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\n- iOS 9.0+\n- Xcode 11+\n- Swift 5+\n\n## Installation\n\nSwiftyTraceableValue is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'SwiftyTraceableValue'\n```\n\n\n\n## Usage\n\n\n\n1、使用属性包装器 `SwiftyTraceableValue` 对需要比较属性进行修饰\n\n```swift\n// Reactor\n\nstruct State {\n    @SwiftyTraceableValue var sections : [LXFSection] = []\n    ...\n}\n```\n\n\n\n2、使用 `mapDistinctUntilTraceableValueChanged` 方法，并在对应属性前加上 `$` \n\n```swift\n// View\n\nreactor.state.mapDistinctUntilTraceableValueChanged { $0.$sections }\n    .bind(to: tableView.rx.items(dataSource: dataSource))\n    .disposed(by: disposeBag)\n```\n\n\n\n## License\n\nSwiftyTraceableValue is available under the MIT license. See the LICENSE file for more info.\n\n\n\n## Author\n\n- LinXunFeng\n- email: [linxunfeng@yeah.net](mailto:linxunfeng@yeah.net)\n- Blogs: [全栈行动](https://fullstackaction.com/) | [LinXunFeng‘s Blog](http://linxunfeng.top/)  | [掘金](https://juejin.im/user/58f8065e61ff4b006646c72d/posts) \n\n\n\u003cimg height=\"267.5\" width=\"481.5\" src=\"https://github.com/LinXunFeng/LinXunFeng/blob/master/static/img/FSAQR.png\" /\u003e\n\n\n## Other\n\n| \u003cimg width=\"252\" height=\"294\" src=\"https://github.com/LinXunFeng/site/raw/master/source/images/others/pay/alipay_tip.png\" /\u003e | \u003cimg width=\"252\" height=\"294\"  src=\"https://github.com/LinXunFeng/site/raw/master/source/images/others/pay/wechat_tip.png\" /\u003e |\n| :----------------------------------------------------------: | :----------------------------------------------------------: |\n|                                                              |                                                              |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinxunfeng%2Fswiftytraceablevalue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinxunfeng%2Fswiftytraceablevalue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinxunfeng%2Fswiftytraceablevalue/lists"}