{"id":20478113,"url":"https://github.com/swiftui-plus/connections","last_synced_at":"2025-04-13T13:13:09.803Z","repository":{"id":43905035,"uuid":"402128202","full_name":"SwiftUI-Plus/Connections","owner":"SwiftUI-Plus","description":"A set of SwiftUI dynamic property wrappers that provide a more familiar API for accessing the Contacts framework. (iOS, watchOS, macOS)","archived":false,"fork":false,"pushed_at":"2023-07-24T05:13:09.000Z","size":38,"stargazers_count":20,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T04:12:37.135Z","etag":null,"topics":["app","connections","contacts","ios","macos","swift","swiftui","watchos"],"latest_commit_sha":null,"homepage":"https://benkau.com/packages.json","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/SwiftUI-Plus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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},"funding":{"github":"shaps80","custom":"paypal.me/shapsuk"}},"created_at":"2021-09-01T16:24:43.000Z","updated_at":"2025-03-06T07:12:04.000Z","dependencies_parsed_at":"2024-11-15T15:39:18.468Z","dependency_job_id":null,"html_url":"https://github.com/SwiftUI-Plus/Connections","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftUI-Plus%2FConnections","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftUI-Plus%2FConnections/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftUI-Plus%2FConnections/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftUI-Plus%2FConnections/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SwiftUI-Plus","download_url":"https://codeload.github.com/SwiftUI-Plus/Connections/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248717237,"owners_count":21150389,"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":["app","connections","contacts","ios","macos","swift","swiftui","watchos"],"created_at":"2024-11-15T15:35:15.402Z","updated_at":"2025-04-13T13:13:09.798Z","avatar_url":"https://github.com/SwiftUI-Plus.png","language":"Swift","funding_links":["https://github.com/sponsors/shaps80","paypal.me/shapsuk"],"categories":[],"sub_categories":[],"readme":"![ios](https://img.shields.io/badge/iOS-13-green)\n![watch](https://img.shields.io/badge/watchOS-6-green)\n![mac](https://img.shields.io/badge/macOS-10.15-green)\n\n# Connections\n\n\u003e Also available as a part of my [SwiftUI+ Collection](https://benkau.com/packages.json) – just add it to Xcode 13+\n\nA set of SwiftUI dynamic property wrappers that provide a more familiar API for accessing the Contacts framework.\n\nA full demo is included in this repo.\n\n## Features\n\n-   Familiar API, matches CoreData's new FetchRequest APIs\n-   Animation support\n-   View's automatically update to reflect remote changes\n\n## Example\n\n### Containers\n\nFetch a list of containers:\n\n```swift\n@FetchContainerList private var containers\n```\n\nThere are of course additional initializers that allow you to filter the result:\n\n```swift\n@FetchContainerList(\n    forContact: contact.identifier\n) private var containers\n```\n\n### Groups\n\nFetch a list of groups:\n\n```swift\n@FetchGroupList private var groups\n```\n\nSimilar to containers, you can also filter the results:\n\n```swift\n@FetchGroupList(\n    inContainer: container.identifier\n) private var groups\n```\n\n### Contacts\n\n```swift\n@FetchContactList(\n    keysToFetch: [\n        .type,\n        .givenName, .familyName,\n        .organizationName,\n        .phoneNumbers\n    ],\n    sortOrder: .givenName\n) private var contacts\n```\n\n\u003e All property wrappers provide standard SwiftUI animation properties. If you don't include this value, the value defaults to `.default`\n\n## Installation\n\nThe code is packaged as a framework. You can install manually (by copying the files in the `Sources` directory) or using Swift Package Manager (**preferred**)\n\nTo install using Swift Package Manager, add this to the `dependencies` section of your `Package.swift` file:\n\n`.package(url: \"https://github.com/SwiftUI-Plus/Connections.git\", .upToNextMinor(from: \"1.0.0\"))`\n\n## Other Packages\n\nIf you want easy access to this and more packages, add the following collection to your Xcode 13+ configuration:\n\n`https://benkau.com/packages.json`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftui-plus%2Fconnections","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswiftui-plus%2Fconnections","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftui-plus%2Fconnections/lists"}