-
Notifications
You must be signed in to change notification settings - Fork 1
Getting Started
ChiefVenzox edited this page Jun 7, 2026
·
6 revisions
In Xcode, choose File > Add Package Dependencies... and use:
https://github.com/ChiefVenzox/SwiftBlocks.git
Then import the package:
import SwiftUI
import SwiftBlocks#Preview {
EDKDesignCanvas()
}The canvas includes a palette, an iPhone-sized design surface, and an inspector. Drag blocks from the palette, tap to select, drag to move, and use the resize handle to change dimensions.
#Preview {
SwiftBlocksCraftWindow()
}Use the craft panel to choose a block type, color, and radius. Press Craft to create two local suggestions, then drag either suggestion onto the canvas.
EDKButton("Continue", style: EDKComponentStyle(variant: .primary)) {
print("Continue")
}EDKSurface(style: EDKComponentStyle(variant: .glass, cornerRadius: 14)) {
Text("Liquid Glass surface")
}