import SwiftUI struct ProcessingView: View { let viewModel: ProcessingViewModel var body: some View { ZStack { Color(nsColor: .windowBackgroundColor) .ignoresSafeArea() HStack(spacing: 12) { ProgressView() .controlSize(.small) Text(viewModel.title) .font(.system(.body, design: .rounded, weight: .medium)) .fixedSize(horizontal: false, vertical: true) } .padding(.horizontal, 18) .padding(.vertical, 16) .frame(maxWidth: 420, alignment: .leading) .background(Color(nsColor: .controlBackgroundColor), in: RoundedRectangle(cornerRadius: 14, style: .continuous)) .overlay { RoundedRectangle(cornerRadius: 14, style: .continuous) .stroke(Color.secondary.opacity(0.16), lineWidth: 1) } .shadow(color: Color.black.opacity(0.05), radius: 10, x: 0, y: 4) .padding(24) } .frame(maxWidth: .infinity, maxHeight: .infinity) } }