Skip to content

Commit

Permalink
Don't do the up-flip on iOS 17.
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave committed Dec 18, 2024
1 parent 2e61a6b commit 6ab2441
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,12 @@ struct MediaEventsTimelineScreen: View {
}

func scale(for item: RoomTimelineItemViewState, isGridLayout: Bool) -> CGSize {
guard item.identifier != context.viewState.currentPreviewItemID else {
if item.identifier == context.viewState.currentPreviewItemID, #available(iOS 18.0, *) {
// Remove the flip when presenting a preview so that the zoom transition is the right way up 🙃
return CGSize(width: 1, height: 1)
CGSize(width: 1, height: 1)
} else {
CGSize(width: isGridLayout ? -1 : 1, height: -1)
}

return CGSize(width: isGridLayout ? -1 : 1, height: -1)
}
}

Expand Down

0 comments on commit 6ab2441

Please sign in to comment.