{"id":17163171,"url":"https://github.com/noppefoxwolf/swiftdatauikit","last_synced_at":"2025-07-22T21:03:03.451Z","repository":{"id":227092667,"uuid":"770439777","full_name":"noppefoxwolf/SwiftDataUIKit","owner":"noppefoxwolf","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-11T18:47:12.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-03T11:32:43.916Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/noppefoxwolf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-03-11T14:56:37.000Z","updated_at":"2024-03-12T04:32:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"ce8dbc50-a59c-4d76-9481-fc07bf5e74ac","html_url":"https://github.com/noppefoxwolf/SwiftDataUIKit","commit_stats":null,"previous_names":["noppefoxwolf/swiftdatauikit"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/noppefoxwolf/SwiftDataUIKit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noppefoxwolf%2FSwiftDataUIKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noppefoxwolf%2FSwiftDataUIKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noppefoxwolf%2FSwiftDataUIKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noppefoxwolf%2FSwiftDataUIKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noppefoxwolf","download_url":"https://codeload.github.com/noppefoxwolf/SwiftDataUIKit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noppefoxwolf%2FSwiftDataUIKit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266572293,"owners_count":23949992,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-10-14T22:48:01.462Z","updated_at":"2025-07-22T21:03:03.431Z","avatar_url":"https://github.com/noppefoxwolf.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftDataUIKit\n\n## Description\nSwiftData extensions for UIKit.\n\n## Installation\nTo integrate a package into your Swift project using Swift Package Manager, add the package's URL to your `Package.swift` file as a dependency:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/noppefoxwolf/SwiftDataUIKit\", from: \"0.0.1\")\n]\n```\n\n# Usage\n\n## Setup\n\nPut @ViewQuery instead @Query in your view.\n\n```swift\n@ViewQuery(FetchDescriptor\u003cUser\u003e())\nvar users: [User]\n```\n\nViewQuery need to load view and ModelContainer.\n\n```swift\n_users.load(view, modelContainer: modelContainer)\n```\n\n## Observe\n\n`$users` is a Combine publisher. Any solution can be observe.\n\n### Combine\n```swift\n$users.sink { ... }.store(in: $cancellables)\n```\n\n### Swift Concurrency\n```swift\nTask {\n    for await users in $users.values { ... }\n}\n```\n\n## Mechanism\n\nViewQuery embeds QueryView when you call load().\nQueryView is a SwiftUI view. That has a EmptyView and onChange modifier.\nWhen the query is changed, the onChange modifier is called and publisher send.\n\n# Required\n\n- iOS 17+\n\n# License\n\nSwiftDataUIKit is available under the MIT license. See the LICENSE file for more info.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoppefoxwolf%2Fswiftdatauikit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoppefoxwolf%2Fswiftdatauikit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoppefoxwolf%2Fswiftdatauikit/lists"}