# devxoul/Then

✨ Super sweet syntactic sugar for Swift initializers

Repository: https://github.com/devxoul/Then
Canonical: https://ross.abutalabs.com/products/then
Language: Swift
License: MIT
License Family: permissive
Topics: swift, syntactic-sugar
Last push: 2026-03-10T23:42:59+00:00

## Health v2 (maintenance only)
Score: 55/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 71, release rhythm 8, longevity 100
- inputs: {"age_days": 3905, "days_push": 176, "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 4392, forks 300 (observed 2026-08-28T04:08:48.121547+00:00)

## What it is
Then is a tiny Swift library providing syntactic sugar for object initialization via then(), with(), and do() closure-based helpers. It works with any NSObject subclass or custom types conforming to the Then protocol.

## Use cases
- initialize and configure swift objects in one expression
- reduce boilerplate when setting up uikit views
- copy and mutate value types concisely
- cleaner view controller property setup
- configure nsobject subclasses without temporary variables

## When to choose
- you write lots of UIKit/SwiftUI-adjacent view setup code in Swift
- you want concise, readable initializer configuration
- you need a tiny dependency with no other requirements

## When to avoid
- you don't write Swift
- you prefer explicit multi-line initialization or already use builder patterns

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, developer-tools
- domain: programming-languages, developer-tools, mobile-development
- platform: -
- tags: syntactic-sugar, initializers, cocoapods, swift-package-manager, swift, ios, macos

## Member repositories
- devxoul/Then (main) score 55

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:48.121547+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-29T18:21:11.725910+00:00, confidence not recorded.
  - readme: https://github.com/devxoul/Then (fetched 2026-08-28T04:08:48.121547+00:00, sha da742fc08d93)
- Data as of 2026-08-30T08:39:29.467469+00:00.
