mirror of
https://github.com/luxfhe/example-ios-demo.git
synced 2026-10-30 18:13:24 +00:00
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]>
33 lines
1.0 KiB
Swift
33 lines
1.0 KiB
Swift
// Copyright © 2025 Zama. All rights reserved.
|
||
// Copyright © 2025 Lux Industries Inc.
|
||
|
||
import SwiftUI
|
||
|
||
struct SecurelyDisplayedModifier: ViewModifier {
|
||
func body(content: Content) -> some View {
|
||
content
|
||
.padding(.bottom, 14)
|
||
.overlay(alignment: .bottomLeading) {
|
||
let icon = Image(systemName: "lock.fill")
|
||
ViewThatFits {
|
||
Text("\(icon) Data securely decrypted and displayed")
|
||
Text("\(icon) Data securely displayed")
|
||
Text("\(icon) Securely displayed")
|
||
Text("\(icon) Secure")
|
||
}
|
||
.frame(maxWidth: .infinity, alignment: .center)
|
||
.foregroundStyle(.secondary)
|
||
.customFont(.caption2)
|
||
.minimumScaleFactor(0.5)
|
||
.lineLimit(1)
|
||
.fontWeight(.regular)
|
||
}
|
||
}
|
||
}
|
||
|
||
extension View {
|
||
func securelyDisplayed() -> some View {
|
||
self.modifier(SecurelyDisplayedModifier())
|
||
}
|
||
}
|