# radex/SwiftyTimer

Swifty API for NSTimer

Repository: https://github.com/radex/SwiftyTimer
Canonical: https://ross.abutalabs.com/products/swiftytimer
Homepage: http://radex.io/swift/nstimer
Language: Swift
License: MIT
License Family: permissive
Topics: ios, timer, nstimer, swifty, swift
Archived: true
Last push: 2023-11-29T07:02:09+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4134, "days_push": 1008, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1235, forks 135 (observed 2026-08-28T04:04:04.936666+00:00)

## What it is
A small Swift library providing a modern, closure-based API over NSTimer for scheduling delays and repeating timers. It adds intuitive duration helpers like 5.seconds and simple Timer.every/Timer.after calls.

## Use cases
- schedule a repeating timer with a closure in swift
- run code after a delay on ios
- replace verbose nstimer selector syntax
- create readable time intervals like 2.5.seconds in swift
- invalidate a repeating timer from inside its callback

## When to choose
- you want concise, swifty timer syntax on iOS/macOS/watchOS/tvOS
- you prefer closures over target-selector NSTimer APIs
- you need a tiny dependency you can also just copy into your project

## When to avoid
- you need advanced timer features like run-loop–independent scheduling or tolerance controls
- you're targeting modern Swift concurrency and prefer async/await-based timers
- the project appears minimally maintained and may lag newer Swift versions

## Facets
- artifact type: library
- maturity: maintenance
- function: developer-tools, scheduling
- domain: mobile-development, developer-tools, apple-ecosystem
- platform: cross-platform
- tags: swift, timer, nstimer, closures, cocoapods, carthage, syntactic-sugar, ios, macos

## Member repositories
- radex/SwiftyTimer (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:04.936666+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:22:08.643141+00:00, confidence not recorded.
  - readme: https://github.com/radex/SwiftyTimer (fetched 2026-08-28T04:04:04.936666+00:00, sha 2519b5c55351)
  - homepage: http://radex.io/swift/nstimer (fetched 2026-08-29T12:21:38.388905+00:00, sha 2f135f7aaf53)
  - site_page: https://radex.io/about (fetched 2026-08-29T12:21:38.391861+00:00, sha d37660ce9d72)
  - site_page: https://radex.io/about/llm-policy (fetched 2026-08-29T12:21:38.394029+00:00, sha 6996c88aa11b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
