API Reference

KelyphosShellState

Observable state driving the entire shell
Properties3
Is BaseNo
Iconi-lucide-sliders-horizontal
Order20

KelyphosShellState is the @Observable class that drives all shell behavior. Create one instance per window and pass it wherever you need shell control.

Properties

PropertyTypeDescription
titleStringWindow/navigation bar title
subtitleStringToolbar subtitle (macOS)
navigatorVisibleBoolNavigator sidebar visibility
inspectorVisibleBoolInspector panel visibility
utilityAreaVisibleBoolUtility panel visibility
inspectorEnabledBoolWhether inspector is available
utilityEnabledBoolWhether utility area is available
selectedNavigatorIndexIntActive navigator tab index
selectedInspectorIndexIntActive inspector tab index
vibrancyMaterialKelyphosVibrancyMaterialNSVisualEffectView material
backgroundAlphaDoublePanel background opacity (0–1)
windowAppearanceString"auto", "light", or "dark"
colorThemeKelyphosColorThemeSemantic color slots

Initialization

let state = KelyphosShellState(persistencePrefix: "myapp.editor")

State is automatically persisted to UserDefaults using the prefix as a namespace.