{"id":16697033,"url":"https://github.com/ikesyo/swift-with-previous","last_synced_at":"2025-03-14T03:12:28.916Z","repository":{"id":146099349,"uuid":"403784714","full_name":"ikesyo/swift-with-previous","owner":"ikesyo","description":"A Swift property wrapper which stores the previous value","archived":false,"fork":false,"pushed_at":"2021-09-07T06:55:12.000Z","size":4,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-10T18:04:53.350Z","etag":null,"topics":[],"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/ikesyo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-06T23:42:37.000Z","updated_at":"2025-02-19T03:33:28.000Z","dependencies_parsed_at":"2023-04-17T22:16:14.064Z","dependency_job_id":null,"html_url":"https://github.com/ikesyo/swift-with-previous","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/ikesyo%2Fswift-with-previous","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikesyo%2Fswift-with-previous/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikesyo%2Fswift-with-previous/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikesyo%2Fswift-with-previous/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ikesyo","download_url":"https://codeload.github.com/ikesyo/swift-with-previous/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243515567,"owners_count":20303258,"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-10-12T17:45:52.949Z","updated_at":"2025-03-14T03:12:28.892Z","avatar_url":"https://github.com/ikesyo.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swift-with-previous\nA Swift property wrapper which stores the previous value. The previous value can be get by the projected value `$propertyName`.\n\n```swift\nimport XCTest\nimport WithPrevious\n\nfinal class WithPreviousTests: XCTestCase {\n    @WithPrevious var value = 0\n\n    func testWithPreviousWrapper() {\n        XCTAssertEqual(value, 0)\n        XCTAssertNil($value)\n\n        value = 10\n\n        XCTAssertEqual(value, 10)\n        XCTAssertEqual($value, 0)\n    }\n}\n```\n\n## License\nMIT license. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikesyo%2Fswift-with-previous","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fikesyo%2Fswift-with-previous","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikesyo%2Fswift-with-previous/lists"}