{"id":20439908,"url":"https://github.com/v-braun/userdefaultsex","last_synced_at":"2025-10-26T20:02:04.712Z","repository":{"id":96755474,"uuid":"232154332","full_name":"v-braun/UserDefaultsEx","owner":"v-braun","description":"Making UserDefaults great (again?)","archived":false,"fork":false,"pushed_at":"2020-01-08T16:34:29.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-15T20:20:54.902Z","etag":null,"topics":["propertywrapper","swift","userdefaults"],"latest_commit_sha":null,"homepage":null,"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/v-braun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2020-01-06T17:51:04.000Z","updated_at":"2020-01-08T16:32:03.000Z","dependencies_parsed_at":"2023-05-04T19:47:41.205Z","dependency_job_id":null,"html_url":"https://github.com/v-braun/UserDefaultsEx","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v-braun%2FUserDefaultsEx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v-braun%2FUserDefaultsEx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v-braun%2FUserDefaultsEx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v-braun%2FUserDefaultsEx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/v-braun","download_url":"https://codeload.github.com/v-braun/UserDefaultsEx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241989283,"owners_count":20053795,"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":["propertywrapper","swift","userdefaults"],"created_at":"2024-11-15T09:20:21.748Z","updated_at":"2025-10-26T20:02:04.701Z","avatar_url":"https://github.com/v-braun.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UserDefaultsEx\r\n\u003e Making UserDefaults great (again?)\r\n\r\nBy [v-braun - viktor-braun.de](https://viktor-braun.de).\r\n\r\n[![](https://img.shields.io/github/license/v-braun/UserDefaultsEx.svg?style=flat-square)](https://github.com/v-braun/UserDefaultsEx/blob/master/LICENSE)\r\n[![Build Status](https://img.shields.io/travis/v-braun/UserDefaultsEx.svg?style=flat-square)](https://travis-ci.org/v-braun/UserDefaultsEx)\r\n![PR welcome](https://img.shields.io/badge/PR-welcome-green.svg?style=flat-square)\r\n\r\n\r\n\r\n## Description\r\nHelp you to store _Codable_ Objects within UserDefaults.  \r\nJust define your properties and UserDefaultsEx will take care of the encoding and decoding process.\r\n\r\n\r\n## Installation\r\n\r\n```\r\n.package(url: \"https://github.com/v-braun/UserDefaultsEx\", from: \"1.0.0\")\r\n```\r\n\r\n\r\n## Usage\r\n\r\n``` swift\r\nstruct TestSetting : Codable{\r\n    var prop1 = \"\"\r\n    var prop2 = \"\"\r\n}\r\n\r\nextension UserDefaults{\r\n    @JsonUserDefault(storeIn: UserDefaults.standard, withKey: \"mySettings\", defaults: TestSetting())\r\n    static var mySettings : TestSetting\r\n}\r\n\r\n// somewhere:\r\n\r\nlet settings = UserDefaults.mySettings // will read the settings\r\n\r\nsettings.prop1 = \"hello\"\r\nsettings.prop2 = \"world\"\r\n\r\nUserDefaults.mySettings = settings // will write the settings\r\n\r\n```\r\n\r\n\r\n## Authors\r\n\r\n![image](https://avatars3.githubusercontent.com/u/4738210?v=3\u0026amp;s=50)  \r\n[v-braun](https://github.com/v-braun/)\r\n\r\n\r\n\r\n## Contributing\r\n\r\nMake sure to read these guides before getting started:\r\n- [Contribution Guidelines](https://github.com/v-braun/UserDefaultsEx/blob/master/CONTRIBUTING.md)\r\n- [Code of Conduct](https://github.com/v-braun/UserDefaultsEx/blob/master/CODE_OF_CONDUCT.md)\r\n\r\n## License\r\n**UserDefaultsEx** is available under the MIT License. See [LICENSE](https://github.com/v-braun/UserDefaultsEx/blob/master/LICENSE) for details.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv-braun%2Fuserdefaultsex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fv-braun%2Fuserdefaultsex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv-braun%2Fuserdefaultsex/lists"}