{"id":28089202,"url":"https://github.com/dropbox/rxpublished","last_synced_at":"2025-07-04T13:34:46.343Z","repository":{"id":289927024,"uuid":"970895836","full_name":"dropbox/RxPublished","owner":"dropbox","description":"RxPublished: a drop-in RxSwift replacement for Published within ObservableObject ViewModels","archived":false,"fork":false,"pushed_at":"2025-04-25T19:03:14.000Z","size":11,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T04:51:19.406Z","etag":null,"topics":["combine","rxswift","swift","swiftui"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dropbox.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-22T17:42:59.000Z","updated_at":"2025-05-16T19:52:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b5a0564-2163-47f7-a0db-d8e56d90a54f","html_url":"https://github.com/dropbox/RxPublished","commit_stats":null,"previous_names":["dropbox/rxpublished"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dropbox/RxPublished","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropbox%2FRxPublished","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropbox%2FRxPublished/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropbox%2FRxPublished/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropbox%2FRxPublished/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dropbox","download_url":"https://codeload.github.com/dropbox/RxPublished/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropbox%2FRxPublished/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263550774,"owners_count":23478868,"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":["combine","rxswift","swift","swiftui"],"created_at":"2025-05-13T12:54:48.971Z","updated_at":"2025-07-04T13:34:46.337Z","avatar_url":"https://github.com/dropbox.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RxPublished\n\n`@RxPublished` is a drop-in replacement for Combine's `@Published` and is intended to be used in ObservableObject View Models. Under the hood it utilizes [RxSwift](https://github.com/ReactiveX/RxSwift) instead of Combine, allowing pre-existing RxSwift code to be used more seamlessly in SwiftUI.\n\n Its projected value (using `$` operator like `$example`) provides access to an observable stream, mirroring the functionality of the stock `@Published`. Usage within SwiftUI Bindings also works as expected (like for TextField).\n\n If your source of truth lives elsewhere, you can also bind to an external Observable.\n \n ## Installation\n \n ### Swift Package Manager\n \nAdd the following to your `Package.swift` file:\n\n```swift\n.package(url: \"https://github.com/dropbox/RxPublished.git\", .upToNextMajor(from: \"1.0.0\")),\n```\n\n## Usage\n\n```swift\n@RxPublished private(set) var example: String = \"hello world\"\n```\n\nUse the underscored accessor to bind to an Observable that lives elsewhere\n```swift\n@RxPublished private(set) var example: String = \"\"\n\ninit(someObservable: Observable\u003cString\u003e) {\n    someObservable.bind(to: _example)\n}\n```\n\nObserve value changes:\n\n```swift\n$example\n    .distinctUntilChanged()\n    .subscribe {\n        print(\"value changed: \\($0)\")\n    }\n    .disposed(by: disposeBag)\n```\n\n## License\n\n    Copyright (c) 2025 Dropbox, Inc.\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n        http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdropbox%2Frxpublished","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdropbox%2Frxpublished","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdropbox%2Frxpublished/lists"}