// Apple-only learning file: iOS 17+ target with a suitable Xcode SDK. // Not compiled or run in this Windows/Linux review. import SwiftUI struct DemoView: View { private let columns = [GridItem(.adaptive(minimum: 140), spacing: 16)] private let pieces = ["P-31", "P-18", "P-42", "P-50", "P-63", "P-72"] var body: some View { ScrollView { LazyVStack(alignment: .leading, spacing: 20) { Text("Ready pieces").font(.title) LazyVGrid(columns: columns, spacing: 16) { ForEach(pieces, id: \.self) { id in Text(id).frame(maxWidth: .infinity, minHeight: 80) .background(.blue.opacity(0.1), in: RoundedRectangle(cornerRadius: 12)) } } } .padding() } } } @main struct WorkshopDemoApp: App { var body: some Scene { WindowGroup { DemoView() } } }