{"id":19805671,"url":"https://github.com/remirobert/loop","last_synced_at":"2026-05-12T11:42:10.590Z","repository":{"id":72988945,"uuid":"56746825","full_name":"remirobert/Loop","owner":"remirobert","description":"Handle repetitive loop on iOS easily.","archived":false,"fork":false,"pushed_at":"2016-04-21T06:33:42.000Z","size":15,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T17:54:06.609Z","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/remirobert.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":"2016-04-21T06:03:50.000Z","updated_at":"2016-05-07T01:18:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"974c5ea9-455c-4636-aefc-feae16f28dd6","html_url":"https://github.com/remirobert/Loop","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.5,"last_synced_commit":"83e0db09662ba4f8045f5cc39f8303159fc9553a"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/remirobert/Loop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remirobert%2FLoop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remirobert%2FLoop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remirobert%2FLoop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remirobert%2FLoop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remirobert","download_url":"https://codeload.github.com/remirobert/Loop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remirobert%2FLoop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32937999,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-12T09:04:54.029Z","updated_at":"2026-05-12T11:42:10.568Z","avatar_url":"https://github.com/remirobert.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Loop\nHandle repetitive action in loop on iOS easily. With a **swifty** syntax.\n\n![img_0182](http://i.giphy.com/kbUq8z1MEYQ7u.gif)\n\n# Before Loop\n\nBefore using **Loop**, you should create a \"loop\" using **NSTimer** like this :\n\n```swift\noverride func viewDidLoad() {\n  super.viewDidLoad()\n        \n  timer = NSTimer(timeInterval: 3, target: self, selector: #selector(ViewController.loopFunc), userInfo: nil, repeats: true)\n  timer.fire()\n}\n    \nfunc loopFunc() {\n  NSLog(\"loop 2\")\n}\n```\n\nYou will love the new way to handle that with **Loop** 🎉 :\n\n# How to use\n\n```swift\nclass ViewController: UIViewController {\n\n  var loop: Loop!\n\n  override func viewDidLoad() {\n    super.viewDidLoad()\n\n    loop = Loop(every: 5) {\n      //Do stuff here !\n      //You are currently in the MainThread\n      NSLog(\"loop fired ! 🔥\")\n    }\n  }\n}\n```\n\nPause a loop :\n\n```swift\nloop.pause()\n```\n\nResume a loop :\n\n```swift\nloop.resume()\n```\n\nStop a loop :\n\n```swift\nloop.stop()\n```\n\nStart or restart a stoped loop :\n\n```swift\nloop.start()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremirobert%2Floop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremirobert%2Floop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremirobert%2Floop/lists"}