-
Notifications
You must be signed in to change notification settings - Fork 1
Architecture
ChiefVenzox edited this page Jun 5, 2026
·
3 revisions
SwiftBlocks is split into three layers.
EDKTheme contains semantic colors, spacing, radius, and typography scales. The default palette follows Bootstrap-style intent names such as primary, success, warning, and danger.
EDKButton and EDKSurface are the first production-facing blocks. They read from the SwiftUI environment and support semantic variants, size scales, and iOS 26 Liquid Glass where available.
EDKDesignCanvas is the visual builder. It uses:
-
EDKPaletteItemfor draggable palette entries -
EDKDesignCanvasStorefor observable editor state -
EDKDesignDocumentfor Codable layout persistence -
EDKDesignNodefor individual blocks
The document model is intentionally separate from SwiftUI views so future code generation, import/export, and persistence can evolve without rewriting the UI.