{"id":29425734,"url":"https://github.com/inekipelov/combine-observation-broadcast","last_synced_at":"2025-07-12T10:07:56.416Z","repository":{"id":293897246,"uuid":"985361800","full_name":"inekipelov/combine-observation-broadcast","owner":"inekipelov","description":"Lightweight Swift library for hierarchical state broadcasting for ObservableObjects","archived":false,"fork":false,"pushed_at":"2025-07-07T11:47:38.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-07T12:36:34.149Z","etag":null,"topics":["combine","observable-object","observableobject","swift"],"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/inekipelov.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-05-17T15:48:45.000Z","updated_at":"2025-07-07T11:47:41.000Z","dependencies_parsed_at":"2025-06-06T12:30:22.476Z","dependency_job_id":"e3438b7e-4ce8-4163-a3e7-f0486a6ee7ea","html_url":"https://github.com/inekipelov/combine-observation-broadcast","commit_stats":null,"previous_names":["inekipelov/combine-inherited-observable","inekipelov/combine-inherited-observation"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/inekipelov/combine-observation-broadcast","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inekipelov%2Fcombine-observation-broadcast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inekipelov%2Fcombine-observation-broadcast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inekipelov%2Fcombine-observation-broadcast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inekipelov%2Fcombine-observation-broadcast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inekipelov","download_url":"https://codeload.github.com/inekipelov/combine-observation-broadcast/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inekipelov%2Fcombine-observation-broadcast/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264973223,"owners_count":23691493,"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","observable-object","observableobject","swift"],"created_at":"2025-07-12T10:07:55.642Z","updated_at":"2025-07-12T10:07:56.397Z","avatar_url":"https://github.com/inekipelov.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CombineObservationBroadcast\n\n[![Swift Version](https://img.shields.io/badge/Swift-5.5+-orange.svg)](https://swift.org/)\n[![SPM](https://img.shields.io/badge/SPM-compatible-brightgreen.svg)](https://swift.org/package-manager/)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![Swift Tests](https://github.com/inekipelov/combine-observation-broadcast/actions/workflows/swift.yml/badge.svg)](https://github.com/inekipelov/combine-observation-broadcast/actions/workflows/swift.yml)  \n[![iOS](https://img.shields.io/badge/iOS-13.0+-blue.svg)](https://developer.apple.com/ios/)\n[![macOS](https://img.shields.io/badge/macOS-10.15+-white.svg)](https://developer.apple.com/macos/)\n[![tvOS](https://img.shields.io/badge/tvOS-13.0+-black.svg)](https://developer.apple.com/tvos/)\n[![watchOS](https://img.shields.io/badge/watchOS-6.0+-orange.svg)](https://developer.apple.com/watchos/)\n\nA lightweight Swift library for hierarchical state management and change propagation in SwiftUI applications using Combine and the `ObservableObject` protocol.\n\n## Usage\n\n```swift\nimport CombineObservationBroadcast\n\nclass Child: ObservableObject {\n    @Published var count: Int = 0\n    \n    func increment() {\n        count += 1\n    }\n}\n    \nclass Parent: ObservableObject {\n    private(set) lazy var child = ObservationBroadcast(Child(), to: self)\n}\n\nlet parent = Parent()\nvar isChanged = false\nlet cancellable = parent.objectWillChange\n    .sink { isChanged = true }\n    \nparent.child().increment()\nparent.child().increment()\n\nprint(parent.child().count) // Printed \"2\"\nprint(isChanged) // Printed \"true\"\n\n```\n\n## Installation\n\n### Swift Package Manager\n\nAdd the following to your `Package.swift` file:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/inekipelov/combine-observation-broadcast.git\", from: \"0.3.0\")\n]\n```\n\nOr add it directly in Xcode using File → Swift Packages → Add Package Dependency...\n\n## License\n\nThis library is released under the MIT License. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finekipelov%2Fcombine-observation-broadcast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finekipelov%2Fcombine-observation-broadcast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finekipelov%2Fcombine-observation-broadcast/lists"}