mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
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:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user