PaletteKit v2.1.0 Release Notes
Highlights
- New
PaletteKitInsights(iOS 26+ / macOS 26+ / visionOS 26+) — a separate, optional product that turns aPaletteinto aPaletteInsights(name+ one-linesummary) using Apple's on-device FoundationModels. PaletteInsightsGeneratorgenerates with optional callerguidanceand locale-aware output: library-owned instructions steer the model, while caller guidance is supplied as the prompt.PaletteInsightsErrorsurfaces model availability, unsupported-language, guardrail/refusal, and generation failures.
Library changes
- Core
PaletteKitis unchanged (still iOS 17 / macOS 14, no new dependency); FoundationModels is gated behind@availableand lives entirely in the separatePaletteKitInsightsproduct.
Demo app
- New "Generate Insights" entry on the result screen (iOS 26+) produces a name and one-line summary for the extracted palette, with an optional guidance field and a graceful fallback when Apple Intelligence is unavailable.
Install
.package(url: "https://github.com/2dubu/PaletteKit", from: "2.1.0")