# slazyk/Observable-Swift

KVO for Swift - Value Observing and Events

Repository: https://github.com/slazyk/Observable-Swift
Canonical: https://ross.abutalabs.com/products/observable-swift
Language: Swift
License: MIT
License Family: permissive
Last push: 2019-03-27T16:17:25+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": 4456, "days_push": 2716, "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 1224, forks 114 (observed 2026-08-28T04:04:02.896471+00:00)

## What it is
Observable-Swift is a Swift library providing explicit value observing via Observable<T> and subscribable events via Event<T>, inspired by Objective-C's KVO. It supports chained observables, before/after change handlers, multiple handlers, and observer lifetime management using closures and generics.

## Use cases
- observe value changes on Swift variables with closures
- implement KVO-like observing in Swift without Objective-C keys
- subscribe to custom events with Event<T>
- chain observables for key-path-style observation
- add multiple change handlers and tie them to observer lifetime

## When to avoid
- you need Combine, RxSwift, or full reactive streams with operators
- your project requires actively maintained libraries with recent Swift version support
- you rely on implicit KVO of arbitrary object properties

## Facets
- artifact type: library
- maturity: maintenance
- function: state-management, developer-tools
- domain: mobile-development, programming-languages, developer-tools
- platform: -
- tags: kvo, value-observing, events, reactive, closures, swift-framework, swift, apple-ecosystem, ios, macos

## Member repositories
- slazyk/Observable-Swift (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:02.896471+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-30T06:15:29.588755+00:00, confidence not recorded.
  - readme: https://github.com/slazyk/Observable-Swift (fetched 2026-08-28T04:04:02.896471+00:00, sha 370428f858e7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
