Files
ShhShell/ShhShell/Views/About/AboutView.swift
neon443 1f9867caa4 made the connect button save the host first
make the thanks to pills look better
add link to swiftterm
2025-08-04 19:15:04 +01:00

67 lines
1.5 KiB
Swift

//
// AboutView.swift
// ShhShell
//
// Created by neon443 on 02/08/2025.
//
import SwiftUI
struct AboutView: View {
@ObservedObject var hostsManager: HostsManager
var body: some View {
ZStack {
hostsManager.selectedTheme.background.suiColor.opacity(0.7)
.ignoresSafeArea(.all)
// List {
VStack(alignment: .leading) {
UIImage().appIcon
.resizable().scaledToFit()
.frame(width: 100)
.clipShape(RoundedRectangle(cornerRadius: 22))
Text("ShhShell")
.font(.largeTitle.monospaced())
HStack {
Text(Bundle.main.appVersion)
.monospaced()
.font(.subheadline)
Text(Bundle.main.appBuild)
.monospaced()
.font(.callout)
}
.padding(.bottom)
Section("Thanks to") {
Link(destination: URL(string: "https://libssh.org")!) {
Text("LibSSH")
.padding(10)
.background(.gray.opacity(0.7))
.foregroundStyle(.black)
.clipShape(RoundedRectangle(cornerRadius: 7.5))
.shadow(radius: 2)
}
Link(destination: URL(string: "https://github.com/migueldeicaza/SwiftTerm")!) {
Text("SwiftTerm")
.padding(10)
.background(.gray.opacity(0.7))
.foregroundStyle(.black)
.clipShape(RoundedRectangle(cornerRadius: 7.5))
.shadow(radius: 2)
}
}
}
.transition(.scale)
.frame(maxWidth: .infinity)
.padding()
// }
// .scrollContentBackground(.hidden)
}
}
}
#Preview {
AboutView(hostsManager: HostsManager())
}