{"id":16683863,"url":"https://github.com/meniny/every","last_synced_at":"2025-04-09T23:25:24.618Z","repository":{"id":56910180,"uuid":"117191584","full_name":"Meniny/Every","owner":"Meniny","description":"⏱ Elegant Timer in Swift","archived":false,"fork":false,"pushed_at":"2019-04-16T02:40:15.000Z","size":39,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T11:38:11.282Z","etag":null,"topics":["ios","swift","timer"],"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/Meniny.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-01-12T04:18:32.000Z","updated_at":"2019-04-16T02:40:03.000Z","dependencies_parsed_at":"2022-08-20T19:50:36.714Z","dependency_job_id":null,"html_url":"https://github.com/Meniny/Every","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FEvery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FEvery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FEvery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FEvery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Meniny","download_url":"https://codeload.github.com/Meniny/Every/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248127614,"owners_count":21052258,"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","swift","timer"],"created_at":"2024-10-12T14:26:55.200Z","updated_at":"2025-04-09T23:25:24.594Z","avatar_url":"https://github.com/Meniny.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\n\n`Every` is an elegant timer in Swift.\n\n## Requirements\n\n* iOS 8.0+\n* watchOS 2.0+\n* tvOS 9.0+\n* macOS 10.10+\n* Xcode 9 with Swift 4\n\n## Installation\n\n#### CocoaPods\n\n```ruby\nuse_frameworks!\npod 'Every'\n```\n\n## Usage\n\n```swift\nimport Every\n```\n\n```swift\nvar counter = 0\nEvery(1).seconds.do { () -\u003e Every.NextStep in\n    counter += 1\n    guard counter \u003c= 4 else {\n        print(\"STOP\")\n        return .stop\n    }\n    print(counter)\n    return .continue\n}\n// 1\n// 2\n// 3\n// 4\n// STOP\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeniny%2Fevery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeniny%2Fevery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeniny%2Fevery/lists"}