Fix an animation glitch when signing in on iOS 16. (#2098)

This commit is contained in:
Doug 2023-11-17 09:19:18 +00:00 committed by GitHub
parent 93c6aa684b
commit 22742620c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -40,9 +40,9 @@ struct HomeScreen: View {
ForEach(context.viewState.visibleRooms) { room in ForEach(context.viewState.visibleRooms) { room in
HomeScreenRoomCell(room: room, context: context, isSelected: false) HomeScreenRoomCell(room: room, context: context, isSelected: false)
.redacted(reason: .placeholder) .redacted(reason: .placeholder)
.shimmer() // Putting this directly on the LazyVStack creates an accordion animation on iOS 16.
} }
} }
.shimmer()
.disabled(true) .disabled(true)
case .empty: case .empty:
HomeScreenEmptyStateLayout(minHeight: geometry.size.height) { HomeScreenEmptyStateLayout(minHeight: geometry.size.height) {

1
changelog.d/1807.bugfix Normal file
View File

@ -0,0 +1 @@
Fix an animation glitch when signing in on iOS 16.