import SwiftUI import AppKit /// Header showing the application icon and name above its window group. struct AppGroupHeaderView: View { let appName: String let appIcon: NSImage? var body: some View { HStack(spacing: 8) { if let icon = appIcon { Image(nsImage: icon) .resizable() .frame(width: 28, height: 28) } Text(appName) .font(.system(size: 18, weight: .semibold)) .foregroundStyle(.white) Spacer() } .padding(.horizontal, 4) } }