// SPDX-FileCopyrightText: 2026 Reactorcoremeltdown // SPDX-License-Identifier: GPL-3.0-or-later import SwiftUI /// The container app: what Sizzle installs as plugins, and an on-device check /// that each one loads and processes sound. The plugins themselves are used from /// a host (AUM, GarageBand, Loopy, …). struct ContentView: View { @StateObject private var check = PluginCheck() var body: some View { VStack(alignment: .leading, spacing: 12) { Text("Sizzle").font(.system(.largeTitle, design: .monospaced)).foregroundColor(.orange) Text("AUv3 plugins for AUM, GarageBand, Loopy and other hosts.\nLook for \"Tired Sysadmin: Sizzle …\".") .font(.system(.footnote, design: .monospaced)).foregroundColor(.gray) Text(versionLine).font(.system(.caption, design: .monospaced)).foregroundColor(.gray) Button("Check all plugins") { Task { await check.run() } } .buttonStyle(.bordered).disabled(check.running) ScrollView { Text(check.lines.joined(separator: "\n")) .font(.system(.footnote, design: .monospaced)) .frame(maxWidth: .infinity, alignment: .leading) .textSelection(.enabled) } } .padding() .preferredColorScheme(.dark) .onAppear { check.listInstalled() } } private var versionLine: String { let v = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "?" let b = Bundle.main.infoDictionary?["CFBundleVersion"] as? String ?? "?" return "version \(v) (\(b)) · iOS \(ProcessInfo.processInfo.operatingSystemVersionString)" } }