# PureSwift/Cacao

Pure Swift Cross-platform UIKit (Cocoa Touch) implementation (Supports Linux)

Repository: https://github.com/PureSwift/Cacao
Canonical: https://ross.abutalabs.com/products/pureswift-cacao
Language: Swift
License: MIT
License Family: permissive
Topics: swift, linux, cocoa-touch, uikit, cross-platform-gui, vector-graphics
Last push: 2024-12-15T07:46:03+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": 3768, "days_push": 626, "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 1082, forks 38 (observed 2026-08-28T04:03:31.071480+00:00)

## What it is
Cacao is a pure Swift cross-platform reimplementation of UIKit (Cocoa Touch) that runs on macOS and Linux. It lets Swift developers build GUI applications with familiar UIView-based APIs outside of Apple platforms, backed by SDL2 and Cairo.

## Use cases
- build a UIKit-style GUI app on Linux
- run PaintCode StyleKits on Linux
- create cross-platform Swift desktop applications
- use UIView animations outside iOS
- render vector graphics with UIKit APIs on macOS and Linux

## When to choose
- you know UIKit and want to build Linux or macOS GUIs in Swift
- you need to port iOS-style view code to non-Apple platforms
- you want hardware-accelerated UIView animations in a native window manager

## When to avoid
- you need a production-ready, fully compatible UIKit implementation
- you are targeting iOS or native App Store apps
- you need a mature widget toolkit with broad platform support

## Facets
- artifact type: framework
- maturity: experimental
- function: ui-components, graphics, gui
- domain: cross-platform, developer-tools, graphics
- platform: cross-platform
- tags: uikit, cocoa-touch, swift, vector-graphics, sdl2, cairo, linux, macos

## Member repositories
- PureSwift/Cacao (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:31.071480+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:51:13.726151+00:00, confidence not recorded.
  - readme: https://github.com/PureSwift/Cacao (fetched 2026-08-28T04:03:31.071480+00:00, sha 2b5722e01380)
- Data as of 2026-08-30T08:39:29.467469+00:00.
