mirror of
https://github.com/maxgoedjen/secretive.git
synced 2024-11-24 06:27:08 +00:00
Embed detail in scrollview (#241)
This commit is contained in:
parent
3f04126d00
commit
3d305d95ac
@ -8,19 +8,21 @@ struct SecretDetailView<SecretType: Secret>: View {
|
|||||||
private let keyWriter = OpenSSHKeyWriter()
|
private let keyWriter = OpenSSHKeyWriter()
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
Form {
|
ScrollView {
|
||||||
Section {
|
Form {
|
||||||
CopyableView(title: "SHA256 Fingerprint", image: Image(systemName: "touchid"), text: keyWriter.openSSHSHA256Fingerprint(secret: secret))
|
Section {
|
||||||
Spacer()
|
CopyableView(title: "SHA256 Fingerprint", image: Image(systemName: "touchid"), text: keyWriter.openSSHSHA256Fingerprint(secret: secret))
|
||||||
.frame(height: 20)
|
Spacer()
|
||||||
CopyableView(title: "MD5 Fingerprint", image: Image(systemName: "touchid"), text: keyWriter.openSSHMD5Fingerprint(secret: secret))
|
.frame(height: 20)
|
||||||
Spacer()
|
CopyableView(title: "MD5 Fingerprint", image: Image(systemName: "touchid"), text: keyWriter.openSSHMD5Fingerprint(secret: secret))
|
||||||
.frame(height: 20)
|
Spacer()
|
||||||
CopyableView(title: "Public Key", image: Image(systemName: "key"), text: keyString)
|
.frame(height: 20)
|
||||||
Spacer()
|
CopyableView(title: "Public Key", image: Image(systemName: "key"), text: keyString)
|
||||||
|
Spacer()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
.padding()
|
||||||
}
|
}
|
||||||
.padding()
|
|
||||||
.frame(minHeight: 200, maxHeight: .infinity)
|
.frame(minHeight: 200, maxHeight: .infinity)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user