{"id":25118961,"url":"https://github.com/0xwdg/icloudstorage","last_synced_at":"2025-07-26T21:11:24.726Z","repository":{"id":274050060,"uuid":"921750145","full_name":"0xWDG/iCloudStorage","owner":"0xWDG","description":"iCloudStorage is a property wrapper around NSUbiquitousKeyValueStore to easily access your shared UserDefaults.","archived":false,"fork":false,"pushed_at":"2025-03-13T18:37:55.000Z","size":307,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-16T02:09:23.036Z","etag":null,"topics":["0xwdg","icloud","key-value-store","nsubiquitouskeyvaluestore","propertywrapper","swift","swiftui"],"latest_commit_sha":null,"homepage":"https://0xwdg.github.io/iCloudStorage/","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/0xWDG.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"0xWDG"}},"created_at":"2025-01-24T14:45:16.000Z","updated_at":"2025-04-02T19:29:01.000Z","dependencies_parsed_at":"2025-01-24T15:44:08.780Z","dependency_job_id":null,"html_url":"https://github.com/0xWDG/iCloudStorage","commit_stats":null,"previous_names":["0xwdg/icloudstorage"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xWDG%2FiCloudStorage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xWDG%2FiCloudStorage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xWDG%2FiCloudStorage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xWDG%2FiCloudStorage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xWDG","download_url":"https://codeload.github.com/0xWDG/iCloudStorage/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250301321,"owners_count":21408147,"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":["0xwdg","icloud","key-value-store","nsubiquitouskeyvaluestore","propertywrapper","swift","swiftui"],"created_at":"2025-02-08T04:23:30.563Z","updated_at":"2025-04-22T18:47:23.280Z","avatar_url":"https://github.com/0xWDG.png","language":"Swift","funding_links":["https://github.com/sponsors/0xWDG"],"categories":[],"sub_categories":[],"readme":"# iCloudStorage\n\niCloudStorage is a property wrapper around NSUbiquitousKeyValueStore to easily access your shared UserDefaults.\n\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2F0xWDG%2FiCloudStorage%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/0xWDG/iCloudStorage)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2F0xWDG%2FiCloudStorage%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/0xWDG/iCloudStorage)\n[![Swift Package Manager](https://img.shields.io/badge/SPM-compatible-brightgreen.svg)](https://swift.org/package-manager)\n![License](https://img.shields.io/github/license/0xWDG/iCloudStorage)\n\n## Requirements\n\n- Swift 5.9+ (Xcode 15+)\n- iOS 13+, macOS 10.15+\n\n## Installation (Pakage.swift)\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/0xWDG/iCloudStorage.git\", branch: \"main\"),\n],\ntargets: [\n    .target(name: \"MyTarget\", dependencies: [\n        .product(name: \"iCloudStorage\", package: \"iCloudStorage\"),\n    ]),\n]\n```\n\n## Installation (Xcode)\n\n1. In Xcode, open your project and navigate to **File** → **Swift Packages** → **Add Package Dependency...**\n2. Paste the repository URL (`https://github.com/0xWDG/iCloudStorage`) and click **Next**.\n3. Click **Finish**.\n\n## Usage\n\n```swift\nimport SwiftUI\nimport iCloudStorage\n\nstruct ContentView: View {\n    @iCloudStorage(\"key\")\n    var value: String = \"default\"\n\n    var body: some View {\n        VStack {\n            Text(value)\n\n            Button(\"Change value\") {\n                value = \"Hello there at \\(Date())\"\n            }\n        }\n        .task {\n            value = \"Hello there\"\n        }\n        .padding()\n    }\n}\n```\n\n## Contact\n\n🦋 [@0xWDG](https://bsky.app/profile/0xWDG.bsky.social)\n🐘 [mastodon.social/@0xWDG](https://mastodon.social/@0xWDG)\n🐦 [@0xWDG](https://x.com/0xWDG)\n🧵 [@0xWDG](https://www.threads.net/@0xWDG)\n🌐 [wesleydegroot.nl](https://wesleydegroot.nl)\n🤖 [Discord](https://discordapp.com/users/918438083861573692)\n\nInterested learning more about Swift? [Check out my blog](https://wesleydegroot.nl/blog/).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xwdg%2Ficloudstorage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xwdg%2Ficloudstorage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xwdg%2Ficloudstorage/lists"}