{"id":15038661,"url":"https://github.com/mborsten/afterx","last_synced_at":"2026-01-29T21:01:56.836Z","repository":{"id":56901644,"uuid":"87621901","full_name":"mborsten/AfterX","owner":"mborsten","description":"AfterX helps you keep track of things you only want to do once, or after x amount of times, during the application lifetime","archived":false,"fork":false,"pushed_at":"2024-05-17T12:19:58.000Z","size":63,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T21:47:47.010Z","etag":null,"topics":["ios","swift-3","swift3","xcode"],"latest_commit_sha":null,"homepage":"","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/mborsten.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-04-08T09:09:30.000Z","updated_at":"2024-05-17T12:19:57.000Z","dependencies_parsed_at":"2024-10-12T15:10:39.575Z","dependency_job_id":null,"html_url":"https://github.com/mborsten/AfterX","commit_stats":{"total_commits":32,"total_committers":1,"mean_commits":32.0,"dds":0.0,"last_synced_commit":"2ddf07d24dd5c653d2dcc8acb7030dd35653c46b"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mborsten%2FAfterX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mborsten%2FAfterX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mborsten%2FAfterX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mborsten%2FAfterX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mborsten","download_url":"https://codeload.github.com/mborsten/AfterX/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241597812,"owners_count":19988315,"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-3","swift3","xcode"],"created_at":"2024-09-24T20:39:32.942Z","updated_at":"2026-01-29T21:01:51.816Z","avatar_url":"https://github.com/mborsten.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AfterX\n\n[![Version](https://img.shields.io/cocoapods/v/AfterX.svg?style=flat)](http://cocoapods.org/pods/AfterX)\n[![License](https://img.shields.io/cocoapods/l/AfterX.svg?style=flat)](http://cocoapods.org/pods/AfterX)\n[![Platform](https://img.shields.io/cocoapods/p/AfterX.svg?style=flat)](http://cocoapods.org/pods/AfterX)\n\nAfterX uses the UserDefaults to keep track of tasks you have performed before. It keeps track of the tasks using the task identifier you give.\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\nWhen you want to do something only once during the lifetime of the app:\n```swift\n  AfterX.doOnce(task: \"button_hint\") {\n    self.showHint()\n  }\n```\n\nWhen you want to do something once after the user has performed a task an x amount of times:\n```swift\n  func calledWhenSucceedingTask() {\n\n    ...\n    \n    AfterX.do(task: \"ask_for_review\", after: 5) {\n      self.askForReview()\n    }\n  }\n```\n\nYou can reset the count for a task:\n```swift\n  AfterX.resetCount(\"my_task\")\n```\n\nOr reset the count for all tasks:\n```swift\n  AfterX.resetAll()\n```\n\n## Requirements\n\n## Installation\n\nAfterX is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"AfterX\"\n```\n\n## Author\n\nMarcel Borsten, marcel@impart.nl\n\n## License\n\nAfterX is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmborsten%2Fafterx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmborsten%2Fafterx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmborsten%2Fafterx/lists"}