From cfb2a74074652d2ceda5fc8ff2e70284ea29c49c Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Tue, 19 Sep 2023 15:13:44 +0100 Subject: [PATCH] Change timeline animations to use .top (flipped). (#1751) --- .../View/Timeline/TimelineTableViewController.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/TimelineTableViewController.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/TimelineTableViewController.swift index a32e25647..b6a7c0e8b 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/TimelineTableViewController.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/TimelineTableViewController.swift @@ -178,8 +178,10 @@ class TimelineTableViewController: UIViewController { cell.contentView.transform = CGAffineTransform(scaleX: 1, y: -1) return cell } - - dataSource?.defaultRowAnimation = .fade + + // We only animate when there's a new last message, so its safe + // to animate from the bottom (which is the top as we're flipped). + dataSource?.defaultRowAnimation = .top tableView.delegate = self }