SP GlassKit1.1.0

Reference

API

The package is split into modules so that an app links only what it uses.

Modules

  • SPGlassCoreCatalogue, component kinds, localised strings, haptics, simulated accessibility settings.
  • SPGlassTokensColour values with WCAG contrast, palettes, spacing, typography, motion, control metrics.
  • SPGlassThemesGlassTheme, resolver, environment injection, JSON codec with migration, validation, Swift export.
  • SPGlassEffectsglassSurface, GlassSurface, GlassGroup, glass morphing, opaque fallback.
  • SPGlassComponentsButtons, containers and feedback.
  • SPGlassNavigationTab bar, navigation bar, toolbar, sidebar, breadcrumb.
  • SPGlassFormsFields and selection controls.
  • SPGlassDataTable, chart, metric card, data grid, timeline.
  • SPGlassMediaAudio and video players, volume, gallery, waveform.
  • SPGlassMapsProvider-independent map controls and an optional MapKit adapter.
  • SPGlassAIChat bubble, prompt bar, activity indicator, model picker, agent panel. Interface only.
  • SPGlassKitUmbrella module that re-exports all of the above.
  • SPGlassRegistryManifest models, validation, checksums, signature, dependency resolution.
Swift
import SPGlassKit          // everything

import SPGlassThemes       // or only what a target uses
import SPGlassComponents

Reference documentation

Every public symbol carries a documentation comment in DocC syntax. The generated reference is not hosted here: the archive of the umbrella module weighs about 640 MB because DocC repeats the inherited SwiftUI members of every view. Build it locally with Scripts/build-docs.sh, or read the symbols in Xcode's documentation window after adding the package.

Each component page lists the public symbols of the component, its parameters and a compiled example.