---
title: diyamantina/appuikit
framework: Swift Package Catalog
role: article
path: packages/diyamantina/appuikit
---

# diyamantina/appuikit

The cross-framework namespace layer for imperative AppKit and UIKit UI code.

## What it provides

- The **full** `AppUI*` type-alias set: views, windows, view controllers, the   control and gesture families, containers, tables/outlines/collections, images, color, font, bezier path,   alerts, menus, toolbars, drag and drop, navigation, pasteboard, appearance/trait, attributed strings, and   the delegate/data-source protocols (`AppUIView`, `AppUIViewController`, `AppUIColor`, `AppUIFont`,   `AppUIPanGestureRecognizer`, …). Each resolves to the AppKit type on macOS and the UIKit type on iOS. - `AppUIKit.currentCGContext()`: the current Core Graphics context inside a view's `draw(_:)`, the one place   the two frameworks differ. - `AppUIKit.Colors`: semantic colors (backgrounds, separators, labels, fills, plus `contentBackground`,   `accent`, and `keyboardFocusIndicator`). - `AppUIKit.Fonts`: `monospaced`, `monospacedPreferred`, and `monospacedDigit`. - `AppUIKit.ViewFactory`: constructors for labels, buttons, icon/pill buttons, separators, cards, scroll   views, stacks, and image views (with `StackAxis` / `StackAlignment`). - `AppUIKit.Pasteboard`, `AppUIKit.VisualEffects`, `AppUIKit.LayoutDirection`, `AppUIKit.TooltipHelper`,   `AppUIKit.KeyboardShortcuts`, and `appui*` view/color convenience extensions. - `isAppKit` / `isUIKit` platform flags.

`import AppUIKit` also re-exports the platform UI framework and Core Graphics, so a consumer drawing in a control reaches `CGContext` and the rest through `import AppUIKit` alone, with no second import.

## Installation

```swift .package(url: "https://github.com/diyamantina/AppUIKit.git", from: "0.2.0"), ```

```swift .target(name: "YourTarget", dependencies: ["AppUIKit"]) ```

## Platforms

| Platform | Minimum | |---|---| | macOS | 14 | | iOS | 17 |

## Rules

This package follows the canonical `rules-swift` rule set, vendored in snapshot mode under `third_party/rules-swift` (start at its `README.md`); the audit of this package against that rule set is `docs/rules-swift-audit.md`. Formatting, linting, and commit hygiene are enforced by `.githooks/` (install per clone with `scripts/install-hooks.sh`).

## Changelog

See [CHANGELOG.md](CHANGELOG.md).

## License

Proprietary. Copyright (c) 2026 Mihaela Mihaljevic. All rights reserved. The source is published for reference and educational reading only. See [LICENSE](LICENSE).

## Package Metadata

Repository: diyamantina/appuikit

Default branch: main

README: README.md
