Ver Fonte

Update ChatListCellView

Sergey há 2 anos atrás
pai
commit
0e0e13c159
1 ficheiros alterados com 3 adições e 7 exclusões
  1. 3 7
      Chat/UI/ChatList/ChatListCellView.swift

+ 3 - 7
Chat/UI/ChatList/ChatListCellView.swift

@@ -12,7 +12,9 @@ struct ChatListCellView: View {
 	let jid: String
 
 	var body: some View {
-		ZStack {
+		NavigationLink {
+			ChatView(viewModel: ChatViewModel(with: jid))
+		} label: {
 			HStack {
 				Image(systemName: "person.crop.circle")
 					.resizable()
@@ -23,12 +25,6 @@ struct ChatListCellView: View {
 			}
 			.foregroundColor(.primary)
 			.frame(height: 30)
-			NavigationLink {
-				ChatView(viewModel: ChatViewModel(with: jid))
-			} label: {
-				EmptyView()
-			}
-			.opacity(0.0)
 		}
 	}
 }