diff --git a/enzevalos_iphone/SwiftUI/Read/Tabbed Views/SenderViewChildren/SmallContactListView.swift b/enzevalos_iphone/SwiftUI/Read/Tabbed Views/SenderViewChildren/SmallContactListView.swift index 1c574ac0ca37b441bdbb5f09e518eb5d9b2b05bb..b74898590d943d78305f18fe86e77b5e7fdcc999 100644 --- a/enzevalos_iphone/SwiftUI/Read/Tabbed Views/SenderViewChildren/SmallContactListView.swift +++ b/enzevalos_iphone/SwiftUI/Read/Tabbed Views/SenderViewChildren/SmallContactListView.swift @@ -31,6 +31,28 @@ struct SmallContactListView <C: DisplayContact>: View { } if showList { ForEach(contacts, id: \.email) {contact in +// Group { +// HStack { +// CircleImage(image: contact.myImage, radius: 40) +// VStack (alignment: .leading, spacing: 2){ +// Text(contact.name) +// .font(.subheadline) +// Text(contact.email) +// .foregroundColor(.gray) +// } +// Spacer() +// Button(action: {self.goToContact(contact: contact)}){ +// Image(systemName: "chevron.right") +// } +// } +// } +// .onTapGesture { +// self.goToContact(contact: contact) +// } + + + // Without an entry in "fromMail", the code will not be executed. Why is "fromMail" necessary to call "ContactView"? + // Therefor we put a dummymail in there NavigationLink(destination: ContactView<C, MailRecord>(contact: contact, fromMail: nil)) { HStack { CircleImage(image: contact.myImage, radius: 40)