mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-26 17:47:40 +00:00
56 lines
1.5 KiB
Swift
56 lines
1.5 KiB
Swift
/*
|
|
* Keyman is copyright (C) SIL Global. MIT License.
|
|
*
|
|
* Created by Eli Schantz on 2026-07-27
|
|
*
|
|
* View used for providing an opening screen for the repair phase.
|
|
*/
|
|
|
|
import SwiftUI
|
|
|
|
import SwiftUI
|
|
import AppKit
|
|
internal import UniformTypeIdentifiers
|
|
|
|
struct InitialRepairView: View {
|
|
@EnvironmentObject var installation: InstallationContainer
|
|
let namespace: Namespace.ID
|
|
let onContinue: () -> Void
|
|
|
|
var body: some View {
|
|
VStack {
|
|
Label("Repairs Required", systemImage: "hand.raised.fill")
|
|
.font(.title)
|
|
.bold()
|
|
.frame(maxWidth: .infinity, alignment: .center)
|
|
.matchedGeometryEffect(id: "title", in: namespace)
|
|
GradientDivider(namespace: namespace)
|
|
|
|
Color.clear
|
|
.frame(height: 50)
|
|
|
|
Form {
|
|
HStack {
|
|
Spacer()
|
|
Image(systemName: "hammer.circle.fill")
|
|
.font(.system(size: 100))
|
|
.padding(.bottom, 16)
|
|
Spacer()
|
|
}
|
|
Text("One or more Keyman components or permissions require your attention. Complete the following steps to restore your Keyman installation.")
|
|
.multilineTextAlignment(.center)
|
|
}
|
|
.formStyle(.grouped)
|
|
|
|
HStack {
|
|
Text("Resolve Issues")
|
|
.font(.title2)
|
|
.frame(maxWidth: .infinity, alignment: .leading)
|
|
.buttonStyle(.borderedProminent)
|
|
.tint(.blue)
|
|
.clipShape(Capsule())
|
|
NavigationButton(action: .advance, onContinue: onContinue)
|
|
}
|
|
}
|
|
}
|
|
}
|