SPB Git

Repository Public MIT

GlassComponentKind.swift 3.0 KB 74 lines swift

1// =============================================================================2//                  SP BOUCHER | SOFTWARE & RESEARCH3//             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING4// =============================================================================5//6// Project          : SP GlassKit7// File             : Sources/SPGlassCore/GlassComponentKind.swift8// Module           : SPGlassCore9// Repository       : https://git.spboucher.ai/sp-glasskit10// Project Website  : https://glass.spboucher.ai11// Created          : 2026-12-0212// Last Modified    : 2026-12-0213//14// Author           : Simon-Pierre Boucher15// Position         : Professor of Finance16// Institution      : Université du Québec en Outaouais (UQO)17// Organization     : SP Boucher18// Website          : https://spboucher.ai19// Git              : https://git.spboucher.ai20//21// Preferred Contact: contact@spboucher.ai22// Development      : dev@spboucher.ai23// Support          : support@spboucher.ai24// Security/Admin   : admin@spboucher.ai25//26// Copyright (c) 202627// Simon-Pierre Boucher28// All rights reserved where applicable. This file is governed by the29// applicable project license, copyright notices and relevant law.30// Existing third-party rights and notices remain unaffected.31//32// License          : MIT33//34// Do not embed credentials, private keys, access tokens,35// certificates or confidential personal information.36//37// =============================================================================38// END OF SP BOUCHER SOURCE HEADER39// =============================================================================4041import Foundation4243/// How a component relates to the system: the distinction drives documentation, the registry and the Studio.44public enum GlassComponentKind: String, Codable, CaseIterable, Sendable {45    /// Configures a control drawn by the system (`TabView`, `Toggle`, `.sheet`…). The system owns the glass.46    case nativeWrapper = "native-wrapper"47    /// Draws its own surface with `glassEffect` and falls back to an opaque surface when transparency is reduced.48    case customGlass = "custom-glass"49    /// Presents content on an opaque, readable surface. Glass is limited to floating controls, if any.50    case contentComponent = "content-component"51    /// Shared building block installed with components in source mode (tokens, themes, effects, helpers).52    case primitive53}5455/// Catalogue sections, in the order of the published catalogue.56public enum GlassComponentCategory: String, Codable, CaseIterable, Sendable {57    case navigation, buttons, forms, selection, containers, feedback, data, media, maps, ai58}5960/// Platforms a component is built and exercised on.61public enum GlassPlatform: String, Codable, CaseIterable, Sendable {62    case iOS, iPadOS, macOS6364    /// The platform this code is running on. iPadOS is reported as `.iPadOS` only at run time by UI code;65    /// at this level iPhone and iPad share `.iOS`.66    public static var current: GlassPlatform {67        #if os(macOS)68        .macOS69        #else70        .iOS71        #endif72    }73}74
Files main
Menu

Theme