{"id":20678943,"url":"https://github.com/fastred/singlefetchedresultcontroller","last_synced_at":"2025-04-19T23:45:27.005Z","repository":{"id":62455595,"uuid":"60544718","full_name":"fastred/SingleFetchedResultController","owner":"fastred","description":"Like NSFetchedResultsController but for a single managed object.","archived":false,"fork":false,"pushed_at":"2017-08-23T00:30:48.000Z","size":13,"stargazers_count":26,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T23:45:22.853Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://holko.pl/2016/06/07/single-object-core-data/","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/fastred.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":"2016-06-06T16:49:01.000Z","updated_at":"2023-04-14T09:36:36.000Z","dependencies_parsed_at":"2022-11-01T22:46:36.766Z","dependency_job_id":null,"html_url":"https://github.com/fastred/SingleFetchedResultController","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastred%2FSingleFetchedResultController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastred%2FSingleFetchedResultController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastred%2FSingleFetchedResultController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastred%2FSingleFetchedResultController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fastred","download_url":"https://codeload.github.com/fastred/SingleFetchedResultController/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249830845,"owners_count":21331357,"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":[],"created_at":"2024-11-16T21:23:14.299Z","updated_at":"2025-04-19T23:45:26.989Z","avatar_url":"https://github.com/fastred.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SingleFetchedResultController\nLike NSFetchedResultsController but for a single managed object. Please see the [associated blogpost][blogpost].\n\n## Usage\n\n```swift\nclass MyClass {\n    var frc: SingleFetchedResultController\u003cProfile\u003e?\n    ...\n    \n    func setup() throws {\n        let predicate = NSPredicate(format: \"username = %@\", username)\n        frc = SingleFetchedResultController(predicate: predicate,\n                                            managedObjectContext: moc,\n                                            onChange: { (profile, changeType) in\n            // will be called after the first fetch and after each change to the object\n            print(profile.username)\n        })\n    \n        try frc?.performFetch()\n    }\n}\n```\n\n## Requirements\n\niOS 8 and above.\n\n## Author\n\nArkadiusz Holko:\n\n* [@arekholko on Twitter](https://twitter.com/arekholko)\n* [Holko.pl](http://holko.pl/)\n\n[blogpost]: http://holko.pl/2016/06/07/single-object-core-data/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastred%2Fsinglefetchedresultcontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffastred%2Fsinglefetchedresultcontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastred%2Fsinglefetchedresultcontroller/lists"}