# ashleymills/Reachability.swift

Replacement for Apple's Reachability re-written in Swift with closures

Repository: https://github.com/ashleymills/Reachability.swift
Canonical: https://ross.abutalabs.com/products/reachabilityswift
Language: Swift
License: MIT
License Family: permissive
Last push: 2024-10-03T11:54:56+00:00

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

## Adoption (not part of the score)
Stars 7972, forks 946 (observed 2026-08-28T04:10:10.367919+00:00)

## What it is
A Swift library that monitors network reachability on Apple platforms, replacing Apple's Reachability sample code with a closure-based API. It supports iOS, macOS, and tvOS and is distributed via CocoaPods, Carthage, or manual file inclusion.

## Use cases
- detect when the device goes online or offline
- show a no-internet banner in an iOS app
- wait for network connectivity before retrying API calls
- monitor wifi vs cellular connection changes
- check if a specific host is reachable

## When to choose
- you need a lightweight, closure-based reachability monitor in Swift
- you want a well-known drop-in replacement for Apple's Reachability sample
- you support older iOS/macOS/tvOS versions

## When to avoid
- you need NWPathMonitor-based modern APIs and can use Apple's Network framework directly
- your project targets only recent OS versions where NWPathMonitor suffices
- you need detailed connection quality metrics, not just reachability

## Facets
- artifact type: library
- maturity: maintenance
- function: networking, developer-tools
- domain: mobile-development, developer-tools, cross-platform
- platform: -
- tags: network-reachability, closures, swift, cocoapods, carthage, ios, macos

## Member repositories
- ashleymills/Reachability.swift (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:10.367919+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-29T17:32:36.163557+00:00, confidence not recorded.
  - readme: https://github.com/ashleymills/Reachability.swift (fetched 2026-08-28T04:10:10.367919+00:00, sha a524487f1974)
- Data as of 2026-08-30T08:39:29.467469+00:00.
