{"id":19685882,"url":"https://github.com/rxswiftcommunity/rxcontacts","last_synced_at":"2025-04-29T06:31:01.726Z","repository":{"id":62453103,"uuid":"136498566","full_name":"RxSwiftCommunity/RxContacts","owner":"RxSwiftCommunity","description":"RxContacts is a RxSwift wrapper around the Contacts Framework.","archived":false,"fork":false,"pushed_at":"2020-10-20T16:21:33.000Z","size":117,"stargazers_count":13,"open_issues_count":1,"forks_count":13,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-17T01:35:50.197Z","etag":null,"topics":["contacts","framework","ios","macos","rxswift","rxswift-extensions","swift","watchos"],"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/RxSwiftCommunity.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}},"created_at":"2018-06-07T15:41:14.000Z","updated_at":"2021-07-19T04:11:11.000Z","dependencies_parsed_at":"2022-11-01T23:46:20.076Z","dependency_job_id":null,"html_url":"https://github.com/RxSwiftCommunity/RxContacts","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/RxSwiftCommunity%2FRxContacts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RxSwiftCommunity%2FRxContacts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RxSwiftCommunity%2FRxContacts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RxSwiftCommunity%2FRxContacts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RxSwiftCommunity","download_url":"https://codeload.github.com/RxSwiftCommunity/RxContacts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251450656,"owners_count":21591407,"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":["contacts","framework","ios","macos","rxswift","rxswift-extensions","swift","watchos"],"created_at":"2024-11-11T18:24:33.194Z","updated_at":"2025-04-29T06:31:01.310Z","avatar_url":"https://github.com/RxSwiftCommunity.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RxContacts\n\nRxContacts is a [RxSwift](https://github.com/ReactiveX/RxSwift) wrapper around the [Contacts Framework](https://developer.apple.com/documentation/contacts).\n\n[![Language: Swift 4](https://img.shields.io/badge/language-swift4-f48041.svg?style=flat-square)](https://developer.apple.com/swift)\n[![Version](https://img.shields.io/cocoapods/v/RxContacts.svg?style=flat-square)](http://cocoapods.org/pods/RxContacts)\n[![License](https://img.shields.io/cocoapods/l/RxContacts.svg?style=flat-square)](http://cocoapods.org/pods/RxContacts)\n[![Platform](https://img.shields.io/cocoapods/p/RxContacts.svg?style=flat-square)](http://cocoapods.org/pods/RxContacts)\n[![Swift Package Manager](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg?style=flat-square)](https://github.com/apple/swift-package-manager)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat-square)](https://github.com/Carthage/Carthage)\n\n## Requirements\n\n- iOS 9.0+ / Mac OS X 10.12+ /  watchOS 3.0+\n- Xcode 9.0+\n\n## Installation\n\n### CocoaPods\n\n[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:\n\n```bash\n$ gem install cocoapods\n```\n\nTo integrate RxContacts into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '8.0'\nuse_frameworks!\n\npod 'RxContacts'\n\n```\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n\n### Carthage\n\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application.\n\nYou can install Carthage with [Homebrew](http://brew.sh/) using the following command:\n\n```bash\n$ brew update\n$ brew install carthage\n```\n\nTo integrate RxContacts into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```ogdl\ngithub \"SwiftyContacts/RxContacts\" ~\u003e 0.1\n```\n### Swift Package Manager\n\nTo use RxContacts as a [Swift Package Manager](https://swift.org/package-manager/) package just add the following in your Package.swift file.\n\n``` swift\nimport PackageDescription\n\nlet package = Package(\n    name: \"HelloContacts\",\n    dependencies: [\n        .Package(url: \"https://github.com/satishbabariya/RxContacts\", \"0.1\")\n    ]\n)\n```\n\n### Manually\n\nIf you prefer not to use either of the aforementioned dependency managers, you can integrate RxContacts into your project manually.\n\n\n#### Embeded Binaries\n\n- Download the latest release from https://github.com/satishbabariya/RxContacts/releases\n- Next, select your application project in the Project Navigator (blue project icon) to navigate to the target configuration window and select the application target under the \"Targets\" heading in the sidebar.\n- In the tab bar at the top of that window, open the \"General\" panel.\n- Click on the `+` button under the \"Embedded Binaries\" section.\n- Add the downloaded `RxContacts.framework`.\n- And that's it!\n\n\n## Get started\n\n\n```swift\n\nimport RxContacts\n\nstore.rx.requestAccess(for: CNEntityType.contacts).subscribe { (event) in\n            switch event{\n            case .next(let bool):\n                break\n            case .error(let error):\n                break\n            case .completed:\n                break\n            }\n        }\n        \n```      \n\nNotifications\n\n``` swift\n\n//Posted notifications when changes occur in another CNContactStore.\n\nstore.rx.didChange().subscribe { (event) in\n            \n}\n\n```\n\n\n\nMethods\n\n``` swift\n\nunifiedContacts(matching predicate: NSPredicate, keysToFetch keys: [CNKeyDescriptor])\nunifiedContact(withIdentifier identifier: String, keysToFetch keys: [CNKeyDescriptor])\ngroups(matching predicate: NSPredicate?)\ncontainers(matching predicate: NSPredicate?) \nenumerateContacts(with fetchRequest: CNContactFetchRequest) \nexecute(_ saveRequest: CNSaveRequest) \n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxswiftcommunity%2Frxcontacts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frxswiftcommunity%2Frxcontacts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxswiftcommunity%2Frxcontacts/lists"}