From 59b61dc61fcf6544d8add781cd68de0efb2e624a Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Mon, 30 Jan 2023 12:27:26 +0000 Subject: [PATCH] Remove room cell animations. (#501) --- .../Sources/Screens/HomeScreen/View/HomeScreenRoomCell.swift | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ElementX/Sources/Screens/HomeScreen/View/HomeScreenRoomCell.swift b/ElementX/Sources/Screens/HomeScreen/View/HomeScreenRoomCell.swift index 838174a55..4546903cc 100644 --- a/ElementX/Sources/Screens/HomeScreen/View/HomeScreenRoomCell.swift +++ b/ElementX/Sources/Screens/HomeScreen/View/HomeScreenRoomCell.swift @@ -71,10 +71,8 @@ struct HomeScreenRoomCell: View { .font(.element.footnote) .foregroundColor(room.hasUnreads ? .element.brand : .element.tertiaryContent) .id(timestamp) - .transition(.opacity.animation(.elementDefault)) } } - .animation(.elementDefault, value: room) } @ViewBuilder @@ -88,7 +86,6 @@ struct HomeScreenRoomCell: View { Text(lastMessage) .lastMessageFormatting() .id(lastMessage) - .transition(.opacity.animation(.elementDefault)) } } @@ -99,7 +96,6 @@ struct HomeScreenRoomCell: View { .frame(width: 12, height: 12) .foregroundColor(.element.brand) .clipShape(Circle()) - .transition(.opacity.animation(.elementDefault)) .padding(.leading, 12) } else { // Force extra padding between last message text and the right border of the screen if there is no unread dot @@ -108,7 +104,6 @@ struct HomeScreenRoomCell: View { .frame(width: 12, height: 12) } } - .animation(.elementDefault, value: room) } }