Skip to content
Snippets Groups Projects
Commit 13b626fa authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Add contact ID to ContactView

parent 7a004c2a
No related branches found
No related tags found
2 merge requests!112Restore contacts from backup,!102Release 1.0.0
import Foundation
extension Data {
public var hexString: String {
map { String(format: "%02hhx ", $0) }.joined()
}
}
......@@ -108,6 +108,8 @@ public struct ContactView: View {
if let dbContact = viewStore.dbContact {
Section {
Label(dbContact.id.hexString, systemImage: "number")
.font(.footnote.monospaced())
Label(dbContact.username ?? "", systemImage: "person")
Label(dbContact.email ?? "", systemImage: "envelope")
Label(dbContact.phone ?? "", systemImage: "phone")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment