# dusty-commits/Closures

Swifty closures for UIKit and Foundation

Repository: https://github.com/dusty-commits/Closures
Canonical: https://ross.abutalabs.com/products/closures
Language: Swift
License: MIT
License Family: permissive
Topics: swift, closures, convenience-methods, uicontrol, cocoapods, carthage, delegation, datasource, uigesturerecognizer, uiimagepickercontroller, kvo, uitableview, uiscrollview, uicollectionview, uipickerview, uibutton, uitextfield, uiview
Last push: 2021-04-29T15:34:36+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": 3335, "days_push": 1952, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1743, forks 169 (observed 2026-08-28T04:05:30.477133+00:00)

## What it is
A Swift framework that adds closure-based handlers to popular UIKit and Foundation classes, replacing delegation, data source, and target-action patterns with concise closure syntax. It supports method chaining and covers controls, gesture recognizers, table/collection views, pickers, text fields, and KVO.

## Use cases
- handle uibutton taps with closures instead of target-action
- replace uitableview delegate and datasource with closure handlers
- add gesture recognizers to views in one line
- configure uitextfield delegate callbacks using chained closures
- populate uipickerview with strings via closures
- observe kvo changes with closure handlers

## When to choose
- you prefer closure-based APIs over delegation patterns in iOS development
- you want concise, chainable syntax for common UIKit callbacks
- you want to reduce boilerplate for table views, collection views, and controls

## When to avoid
- your project targets newer Swift/UIKit versions and needs actively maintained dependencies
- your team follows strict delegation-based architecture conventions
- you need SwiftUI-first solutions rather than UIKit extensions

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, developer-tools
- domain: mobile-development, frontend, developer-tools
- platform: -
- tags: closures, uikit, foundation, delegation, target-action, cocoapods, carthage, swift-extensions, ios, swift, mobile

## Member repositories
- dusty-commits/Closures (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:30.477133+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-30T03:29:33.041302+00:00, confidence not recorded.
  - readme: https://github.com/dusty-commits/Closures (fetched 2026-08-28T04:05:30.477133+00:00, sha ff2a566bcb63)
- Data as of 2026-08-30T08:39:29.467469+00:00.
