{"id":18746567,"url":"https://github.com/coldgrub1384/objectuserdefaults","last_synced_at":"2025-04-12T22:15:05.464Z","repository":{"id":62449468,"uuid":"147589175","full_name":"ColdGrub1384/ObjectUserDefaults","owner":"ColdGrub1384","description":"An object oriented and clean wrapper UserDefaults.","archived":false,"fork":false,"pushed_at":"2018-11-25T16:52:08.000Z","size":478,"stargazers_count":16,"open_issues_count":0,"forks_count":8,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-03-15T04:21:53.808Z","etag":null,"topics":["ios","macos","swift","tvos","userdefaults","watchos"],"latest_commit_sha":null,"homepage":"https://coldgrub1384.github.io/ObjectUserDefaults","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/ColdGrub1384.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-09-05T23:02:58.000Z","updated_at":"2023-11-08T11:44:23.000Z","dependencies_parsed_at":"2022-11-01T23:17:12.833Z","dependency_job_id":null,"html_url":"https://github.com/ColdGrub1384/ObjectUserDefaults","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/ColdGrub1384%2FObjectUserDefaults","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColdGrub1384%2FObjectUserDefaults/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColdGrub1384%2FObjectUserDefaults/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColdGrub1384%2FObjectUserDefaults/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ColdGrub1384","download_url":"https://codeload.github.com/ColdGrub1384/ObjectUserDefaults/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248637796,"owners_count":21137538,"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":["ios","macos","swift","tvos","userdefaults","watchos"],"created_at":"2024-11-07T16:26:02.284Z","updated_at":"2025-04-12T22:15:05.443Z","avatar_url":"https://github.com/ColdGrub1384.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ObjectUserDefaults\n\n![Pod](https://cocoapod-badges.herokuapp.com/v/ObjectUserDefaults/badge.png) ![Platforms](https://cocoapod-badges.herokuapp.com/p/ObjectUserDefaults/badge.png) [![Language](https://img.shields.io/badge/Language-Swift-orange.svg)](https://swift.org) [![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/ColdGrub1384/ObjectUserDefaults/blob/master/LICENSE)\n\nAn object oriented `UserDefaults`.\n\n`UserDefaults` uses methods to get values and set values with given keys, but you have to pass keys as parameters each time you want to set or get a value. With `ObjectUserDefaults`, each item in stored in `UserDefaults` is represented by an object and its value can be set and gotten trough that. That's mean that instead of storing keys in constant, you can store direct references to items.\n\n## Usage\n\n```swift\nimport ObjectUserDefaults\n\nlet item = ObjectUserDefaults.standard.item(forKey: \"Key\") // Creates a reference to the key \"Key\"\n\nprint(item.value) // Prints the value of the key\nitem.value = true // Sets the value of the key\nprint(item.boolValue) // Prints the boolean value of the key\n```\n\n## Installation\n\n### Cocoapods\n\n`pod 'ObjectUserDefaults'`\n\n### Manual\n\nCopy this repo to yours or add it as submodule, drag the xcode project to your one and embed the framework in your target's info tab.\n\n## Documentation\n\nSee the docs [here](https://coldgrub1384.github.io/ObjectUserDefaults)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoldgrub1384%2Fobjectuserdefaults","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoldgrub1384%2Fobjectuserdefaults","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoldgrub1384%2Fobjectuserdefaults/lists"}