{"id":15170596,"url":"https://github.com/mkj-is/elementarycombine","last_synced_at":"2026-01-23T07:08:22.230Z","repository":{"id":63918588,"uuid":"220327670","full_name":"mkj-is/ElementaryCombine","owner":"mkj-is","description":"Experimental, uni-directional and purely functional architecture for SwiftUI.","archived":false,"fork":false,"pushed_at":"2020-06-14T18:31:22.000Z","size":20,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-17T01:37:39.595Z","etag":null,"topics":["combine","elm-architecture","redux","swift","swiftui","unidirectional-data-flow"],"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/mkj-is.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-07T20:57:36.000Z","updated_at":"2023-03-17T12:20:12.000Z","dependencies_parsed_at":"2023-01-14T14:00:52.874Z","dependency_job_id":null,"html_url":"https://github.com/mkj-is/ElementaryCombine","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/mkj-is%2FElementaryCombine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkj-is%2FElementaryCombine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkj-is%2FElementaryCombine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkj-is%2FElementaryCombine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkj-is","download_url":"https://codeload.github.com/mkj-is/ElementaryCombine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239221266,"owners_count":19602378,"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","elm-architecture","redux","swift","swiftui","unidirectional-data-flow"],"created_at":"2024-09-27T08:04:11.341Z","updated_at":"2026-01-23T07:08:22.202Z","avatar_url":"https://github.com/mkj-is.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ElementaryCombine\n\n[**Elementary**](https://github.com/mkj-is/Elementary) uni-directional architecture extension.\nThis package provides `ObservableStore` which can be easily used\nin SwiftUI apps (but not exclusively).\n\n## Installation\n\nWhen using Swift package manager install using Xcode 11+ or add following line to your dependencies:\n\n```swift\n.package(url: \"https://github.com/mkj-is/ElementaryCombine.git\", from: \"0.1.0\")\n```\n\n## Usage\n\nThe `ObservableStore` builds on top of Elementary `Store` and adds conformance\nto `ObservableObject` in Combine. Due to this fact it can ve easily connected\nto SwiftUI views. See the following example of incrementing counter:\n\n```swift\nstruct RootView: View {\n    @ObservedObject var store = ObservableStore(state: 0, update: updateCounter)\n\n    var body: some View {\n        VStack {\n            Text(\"\\(store.state)\")\n            Button(action: { self.store.dispatch(.increment) }) {\n                Text(\"Increment\")\n            }\n        }\n    }\n}\n\n```\n\n## Contributing\n\nAll contributions are welcome.\n\nProject was created by [Matěj Kašpar Jirásek](https://github.com/mkj-is).\n\nProject is licensed under [MIT license](LICENSE.txt).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkj-is%2Felementarycombine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkj-is%2Felementarycombine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkj-is%2Felementarycombine/lists"}