added a snippet picker and it executes a callback when one is selected

added a snippet button to shelltabview
fix crash if hostkey changed message shows up and not connected anymore (such as failed auth)
cleaned up about view and added a libssh link
update bundle.swift to add version and build number getting
This commit is contained in:
neon443
2025-08-03 17:52:20 +01:00
parent 18d708cf0c
commit ee6fc96f01
6 changed files with 104 additions and 11 deletions

View File

@@ -14,16 +14,35 @@ struct AboutView: View {
ZStack {
hostsManager.selectedTheme.background.suiColor.opacity(0.7)
.ignoresSafeArea(.all)
List {
// List {
VStack(alignment: .leading) {
UIImage().appIcon
.resizable().scaledToFit()
.frame(width: 100)
.clipShape(RoundedRectangle(cornerRadius: 26))
Text("ShhShell")
.font(.largeTitle.monospaced())
HStack {
UIImage().appIcon
.resizable().scaledToFit()
.frame(width: 100)
.clipShape(RoundedRectangle(cornerRadius: 26))
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
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")
.background(.red)
}
}
}
.scrollContentBackground(.hidden)
.frame(maxWidth: .infinity)
.padding()
// }
// .scrollContentBackground(.hidden)
}
}
}