# rentzsch/jrswizzle

one-stop-shop for all your method swizzling needs

Repository: https://github.com/rentzsch/jrswizzle
Canonical: https://ross.abutalabs.com/products/jrswizzle
Language: Objective-C
License: MIT
License Family: permissive
Last push: 2023-01-20T13:52:28+00:00

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

## Adoption (not part of the score)
Stars 2644, forks 411 (observed 2026-08-28T04:07:06.692733+00:00)

## What it is
JRSwizzle is a small Objective-C source package providing a single, correct, and consistent API for method swizzling (exchanging method implementations) across many versions of Mac OS X and iOS. It handles runtime architecture differences and inheritance edge cases that naive swizzling implementations get wrong.

## Use cases
- swizzle an Objective-C method at runtime
- exchange method implementations in an iOS app
- patch UIKit or AppKit behavior without subclassing
- instrument existing Objective-C methods for logging or analytics
- avoid swizzling bugs with inherited methods on 64-bit iOS

## When to choose
- you need battle-tested, correct method swizzling on Apple platforms
- you must support old OS X/iOS versions or multiple runtime architectures
- you want simple one-line swizzling with NSError diagnostics

## When to avoid
- you are writing Swift-first code and prefer modern alternatives
- your project avoids runtime monkey-patching entirely
- you need actively developed features beyond swizzling

## Facets
- artifact type: library
- maturity: maintenance
- function: developer-tools, middleware
- domain: apple-ecosystem, developer-tools, programming-languages
- platform: cpp
- tags: objective-c, method-swizzling, runtime, monkey-patching, macos, ios

## Member repositories
- rentzsch/jrswizzle (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:06.692733+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-30T02:19:01.115148+00:00, confidence not recorded.
  - readme: https://github.com/rentzsch/jrswizzle (fetched 2026-08-28T04:07:06.692733+00:00, sha 41a7c6fb8af0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
