// SPDX-FileCopyrightText: 2026 Reactorcoremeltdown // SPDX-License-Identifier: GPL-3.0-or-later import SwiftUI struct ContentView: View { @StateObject private var test = SelfTest() var body: some View { VStack(alignment: .leading, spacing: 12) { Text("Sizzle AUv3 spike").font(.system(.title2, design: .monospaced)).foregroundColor(.orange) Text("In AUM / GarageBand / Loopy look for\n\"Tired Sysadmin: Sizzle Spike Sine\" (instrument).") .font(.system(.footnote, design: .monospaced)).foregroundColor(.gray) HStack { Button("Run self-test") { Task { await test.run() } } Button("Play tone (1 s)") { Task { await test.playTone() } } } .buttonStyle(.bordered) ScrollView { Text(test.lines.joined(separator: "\n")) .font(.system(.footnote, design: .monospaced)) .frame(maxWidth: .infinity, alignment: .leading) .textSelection(.enabled) } } .padding() .preferredColorScheme(.dark) .task { await test.run() } } }