Added blurhash and correct sizes to timeline images and animations throughout the app.

This commit is contained in:
Stefan Ceriu
2022-04-05 15:09:04 +03:00
parent 88a0654d23
commit 8d50d4fd25
9 changed files with 233 additions and 11 deletions
@@ -52,7 +52,7 @@ struct HomeScreenViewState: BindableState {
}
}
struct HomeScreenRoom: Identifiable {
struct HomeScreenRoom: Identifiable, Equatable {
let id: String
var displayName: String?
@@ -84,6 +84,7 @@ struct HomeScreen: View {
.font(.subheadline)
.fontWeight(.bold)
}
.animation(.easeInOut, value: context.viewState.userAvatar)
}
ToolbarItem(placement: .navigationBarTrailing) {
Button("Logout") {
@@ -135,6 +136,7 @@ struct RoomCell: View {
}
}
}
.animation(.easeInOut, value: room)
.frame(minHeight: 60.0)
.onAppear {
context.send(viewAction: .loadRoomData(roomIdentifier: room.id))