Reenable multilineinfoview

This commit is contained in:
Max Goedjen
2026-09-08 21:52:02 -07:00
parent 525ca1ce3e
commit 11b6adb648
3 changed files with 194 additions and 161 deletions
@@ -43,22 +43,18 @@ struct SecretDetailView<SecretType: Secret>: View {
text: URL.publicKeyPath(for: secret, in: URL.publicKeyDirectory),
showRevealInFinder: true
)
// if !certificates.isEmpty {
// Spacer()
// .frame(height: 20)
// MultilineInfoView(
// title: .secretDetailCertificatePathLabel,
// image: Image(
// systemName: "checkmark.seal.text.page"
// ),
// items: certificates.map({ certificate in
// MultilineInfoView.Item(
// text: certificate.name,
// action: (Image(systemName: "chevron.forward"), { navigateToCertificate?(certificate) })
// )
// })
// )
// }
if !certificates.isEmpty {
Spacer()
.frame(height: 20)
MultilineInfoView(title: .secretDetailCertificatePathLabel, image: Image(systemName: "checkmark.seal.text.page")) {
ForEach(certificates) { certificate in
Text(certificate.name)
.multilineItemAction(image: Image(systemName: "chevron.forward")) {
navigateToCertificate?(certificate)
}
}
}
}
Spacer()
}
}