ScratchpadView.swift
1 // 2 // ScratchpadView.swift 3 // Jade 4 // 5 // Created by Thomas Gentry on 5/21/25. 6 // 7 import SwiftUI 8 9 struct ScratchpadView: View { 10 @Binding var text: String 11 12 var body: some View { 13 VStack(alignment: .leading) { 14 Text("Scratchpad") 15 .font(.title2.bold()) 16 .padding(.bottom) 17 18 TextEditor(text: $text) 19 .padding() 20 #if os(iOS) 21 .background(Color(UIColor.secondarySystemBackground)) 22 #elseif os(macOS) 23 .background(Color(NSColor.windowBackgroundColor)) 24 #endif 25 .clipShape(RoundedRectangle(cornerRadius: 12)) 26 27 Spacer() 28 } 29 .padding() 30 } 31 }