Преглед на файлове

Update ChatListCellView

Sergey преди 2 години
родител
ревизия
0e0e13c159
променени са 1 файла, в които са добавени 3 реда и са изтрити 7 реда
  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)
 		}
 	}
 }