mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 05:19:13 +00:00
67 lines
1.5 KiB
Swift
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())
|
|
}
|