mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Cleanup various animations
This commit is contained in:
committed by
Stefan Ceriu
parent
d7ef0cdc30
commit
e11b09de3d
@@ -107,7 +107,7 @@ class HomeScreenViewModel: HomeScreenViewModelType, HomeScreenViewModelProtocol
|
||||
|
||||
guard var room = self.state.rooms.first(where: { $0.id == roomSummary.id }) else {
|
||||
return HomeScreenRoom(id: roomSummary.id,
|
||||
displayName: roomSummary.displayName ?? roomSummary.name,
|
||||
displayName: roomSummary.displayName,
|
||||
topic: roomSummary.topic,
|
||||
lastMessage: lastMessage,
|
||||
avatar: roomSummary.avatar,
|
||||
|
||||
@@ -84,7 +84,7 @@ struct HomeScreen: View {
|
||||
EmptyView()
|
||||
}
|
||||
}
|
||||
.animation(.easeInOut, value: context.viewState.userAvatar)
|
||||
.animation(.default, value: context.viewState.userAvatar)
|
||||
.transition(.opacity)
|
||||
|
||||
ZStack {
|
||||
@@ -96,7 +96,7 @@ struct HomeScreen: View {
|
||||
EmptyView()
|
||||
}
|
||||
}
|
||||
.animation(.easeInOut, value: context.viewState.userDisplayName)
|
||||
.animation(.default, value: context.viewState.userDisplayName)
|
||||
.transition(.opacity)
|
||||
}
|
||||
}
|
||||
@@ -150,7 +150,7 @@ struct RoomCell: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.animation(.easeInOut, value: room)
|
||||
.animation(.default, value: room)
|
||||
.frame(minHeight: 60.0)
|
||||
.task {
|
||||
context.send(viewAction: .loadRoomData(roomIdentifier: room.id))
|
||||
|
||||
Reference in New Issue
Block a user