Skip to content

Commit

Permalink
Embed detail in scrollview (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgoedjen authored Sep 25, 2021
1 parent 3f04126 commit 3d305d9
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions Secretive/Views/SecretDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,21 @@ struct SecretDetailView<SecretType: Secret>: View {
private let keyWriter = OpenSSHKeyWriter()

var body: some View {
Form {
Section {
CopyableView(title: "SHA256 Fingerprint", image: Image(systemName: "touchid"), text: keyWriter.openSSHSHA256Fingerprint(secret: secret))
Spacer()
.frame(height: 20)
CopyableView(title: "MD5 Fingerprint", image: Image(systemName: "touchid"), text: keyWriter.openSSHMD5Fingerprint(secret: secret))
Spacer()
.frame(height: 20)
CopyableView(title: "Public Key", image: Image(systemName: "key"), text: keyString)
Spacer()
ScrollView {
Form {
Section {
CopyableView(title: "SHA256 Fingerprint", image: Image(systemName: "touchid"), text: keyWriter.openSSHSHA256Fingerprint(secret: secret))
Spacer()
.frame(height: 20)
CopyableView(title: "MD5 Fingerprint", image: Image(systemName: "touchid"), text: keyWriter.openSSHMD5Fingerprint(secret: secret))
Spacer()
.frame(height: 20)
CopyableView(title: "Public Key", image: Image(systemName: "key"), text: keyString)
Spacer()
}
}
.padding()
}
.padding()
.frame(minHeight: 200, maxHeight: .infinity)
}

Expand Down

0 comments on commit 3d305d9

Please sign in to comment.