{"id":15037565,"url":"https://github.com/iosdevgarg/coredata_swift_demo","last_synced_at":"2026-04-02T02:06:37.684Z","repository":{"id":143697982,"uuid":"120267158","full_name":"iOSDevGarg/CoreData_Swift_Demo","owner":"iOSDevGarg","description":"Core Data With A Separate Core Class that manages All The required Operations","archived":false,"fork":false,"pushed_at":"2018-02-05T07:18:30.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-20T08:23:06.343Z","etag":null,"topics":["core-data-tutorial","coredata","coredatabase","swift","swift-3","swift-4"],"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/iOSDevGarg.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":"2018-02-05T06:59:58.000Z","updated_at":"2018-02-05T07:13:08.000Z","dependencies_parsed_at":"2023-06-14T11:45:29.715Z","dependency_job_id":null,"html_url":"https://github.com/iOSDevGarg/CoreData_Swift_Demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iOSDevGarg%2FCoreData_Swift_Demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iOSDevGarg%2FCoreData_Swift_Demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iOSDevGarg%2FCoreData_Swift_Demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iOSDevGarg%2FCoreData_Swift_Demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iOSDevGarg","download_url":"https://codeload.github.com/iOSDevGarg/CoreData_Swift_Demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243402694,"owners_count":20285285,"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":["core-data-tutorial","coredata","coredatabase","swift","swift-3","swift-4"],"created_at":"2024-09-24T20:35:00.271Z","updated_at":"2025-12-29T07:57:23.165Z","avatar_url":"https://github.com/iOSDevGarg.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CoreData_Swift_Demo\nSample project Created To Give Basic Information of how to make use of Core Data\n\n**This Project Consists -**\n\n* Seprate Core Class , That managed All the required Operations in Core data\n* Updating , Deleting, Creating and Finding a Record\n* Looking for a Record With NSManagedObjet ID\n\n# Relevant Code\n\n**Get NSManaged Object Conetxt**\n\n    func getContext() -\u003e AudioDetail\n    {\n        // Create an instance of the service.\n        let appDel = UIApplication.shared.delegate as! AppDelegate\n        let context: NSManagedObjectContext = appDel.persistentContainer.viewContext\n        \n        //get Context from Class created\n        let AudioService = AudioDetail(context: context)\n        return AudioService\n    }\n    \n **Saving a New Record**\n \n     @IBAction func saveNewRecord(_ sender: Any)\n    {\n        if (self.doTextExists(TF: fileNameTF)) \u0026\u0026 (self.doTextExists(TF: durationTF)) \u0026\u0026 (self.doTextExists(TF: statusTF))\n        {\n            let AudioService = self.getContext()\n            _ = AudioService.create(fileName: fileNameTF.text!, duration: durationTF.text!, uploadedStatus: statusTF.text!)\n        }\n        else\n        {\n            self.BasicAlert(\"Error!\", message: \"All Fields Are Necessary\", view: self)\n        }\n    }\n\n# Basic UI\n\n![screen shot 2018-02-05 at 12 40 34 pm](https://user-images.githubusercontent.com/26831784/35792337-97a78980-0a72-11e8-9aef-b3315bf74028.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiosdevgarg%2Fcoredata_swift_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiosdevgarg%2Fcoredata_swift_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiosdevgarg%2Fcoredata_swift_demo/lists"}