示例工程 34-drawing-shapes-canvas

34-drawing-shapes-canvas/Sources/Ch34App/App.swift

swift · 0.5 KB

import Ch34Kit
import SwiftUI
 
@main
struct Ch34App: App {
    var body: some Scene {
        WindowGroup("绘制、图形与图片") {
            VStack(spacing: 16) {
                DrawingBoard()
                Text("Canvas 粒子随时间变化;LineChart 是 Shape,可动画。")
                    .font(.footnote)
                    .foregroundStyle(.secondary)
            }
            .padding(24)
            .frame(minWidth: 380, minHeight: 460)
        }
        .windowResizability(.contentSize)
    }
}