Skip to content
Snippets Groups Projects
Commit c03ca734 authored by goekhan08's avatar goekhan08
Browse files

Merge remote-tracking branch 'refs/remotes/origin/284-Add-GoTo-contact-view'

Conflicts:
	enzevalos_iphone/SwiftUI/Read/Tabbed Views/SenderViewChildren/SmallContactListView.swift
parents 1fe1e131 c85ba110
Branches
No related tags found
1 merge request!69Resolve "Add GoTo contact view"
...@@ -31,6 +31,28 @@ struct SmallContactListView <C: DisplayContact>: View { ...@@ -31,6 +31,28 @@ struct SmallContactListView <C: DisplayContact>: View {
} }
if showList { if showList {
ForEach(contacts, id: \.email) {contact in 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)) { NavigationLink(destination: ContactView<C, MailRecord>(contact: contact, fromMail: nil)) {
HStack { HStack {
CircleImage(image: contact.myImage, radius: 40) CircleImage(image: contact.myImage, radius: 40)
......
  • goekhan08 @goekhan08 ·
    Author Developer

    This commit was a mistake. Can be ignored. Don't know how to undo it here.

    Edited by goekhan08
  • wieseoli @wieseoli ·
    Owner

    Can you undo your changes in a new commit?

  • goekhan08 @goekhan08 ·
    Author Developer

    Done!

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment