steipete/InterposeKit
A modern library to swizzle elegantly in Swift. observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 87
- Release rhythm 35
- Longevity 100
Flags: no_releases archived
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2305
- days_rel: n/a
- days_push: 83
- n_releases_24m: 0
Adoption not part of the score
1028 stars · 53 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
InterposeKit is a modern Swift library for method swizzling that hooks @objc dynamic Swift functions and Objective-C instance methods on classes or individual objects. It replaces implementations directly via class_replaceMethod instead of method_exchangeImplementations, avoiding common swizzling pitfalls.
Use cases
- swizzle an Objective-C method in Swift
- hook a method to run code before or after the original implementation
- patch a framework method at runtime to work around a bug
- interpose on a single object instance instead of the whole class
- replace method_exchangeImplementations-based swizzling with a safer approach
When to choose
- you need elegant, type-safe method swizzling in pure Swift
- you want to hook @objc dynamic methods or Objective-C instance methods
- you need per-instance hooks or before/instead/after semantics like the Aspects library
When to avoid
- you need dynamic subclassing, which InterposeKit does not implement
- your methods are not exposed to the Objective-C runtime
- you want an actively maintained library - the repository was archived in June 2026 and is read-only
Facets
library · maturity maintenance
developer-tools developer-tools apple-ecosystem method-swizzling objc-runtime hooking aspects swift-package macos ios swift
2 sources
- readme: https://github.com/steipete/InterposeKit · fetched 2026-08-28 · 8011c9955835
- homepage: https://interposekit.com/ · fetched 2026-08-29 · 4f4b36eedcb4
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| steipete/InterposeKit | main | 10 |
For agents
markdown · JSON · MCP: product_card(name="steipete/InterposeKit")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem