Files
zeekayandHanzo Dev c8bfbebc15 Keep ZAMA's copyright notices
This app is ZAMA's BSD 3-Clause Clear demo. The license requires its notices to
survive redistribution, and a rebrand had replaced every one of them with ours:
the LICENSE text, 66 source headers and the app's copyright string. They are
back, each with our line beside it for our changes.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-23 01:55:03 -07:00

39 lines
1.0 KiB
Swift

// Copyright © 2025 Zama. All rights reserved.
// Copyright © 2025 Lux Industries Inc.
import SwiftUI
#Preview {
ConsoleSection(title: "FHE Encryption", output: "Sample console output…")
.padding()
}
struct ConsoleSection: View {
let title: String
let output: String
@State private var isExpanded: Bool = true
var body: some View {
VStack {
HStack {
Text(title)
.frame(maxWidth: .infinity, alignment: .leading)
.customFont(.title3)
Spacer()
Toggle("Show", isOn: $isExpanded)
.labelsHidden()
}
if isExpanded {
CopyableText(output, fullWidth: true)
.customFont(.caption)
.fontDesign(.monospaced)
.padding(8)
.frame(minHeight: 200, alignment: .topLeading)
.background(Color.luxGreyConsole)
.tint(.black)
}
}
}
}