刷新动效改为逐行渐入,增加从上到下依次出现的过渡效果

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-07-20 23:00:46 +08:00
parent a01207ae00
commit e2f3e5549a
@@ -155,9 +155,17 @@ final class WordListViewController: UIViewController {
} else { } else {
words.shuffle() words.shuffle()
} }
UIView.transition(with: tableView, duration: 0.25, options: .transitionCrossDissolve, animations: { tableView.reloadData()
self.tableView.reloadData() let cells = tableView.visibleCells
}) for (i, cell) in cells.enumerated() {
cell.alpha = 0
cell.transform = CGAffineTransform(translationX: 0, y: 12)
UIView.animate(withDuration: 0.3, delay: Double(i) * 0.03,
options: [.curveEaseOut, .allowUserInteraction]) {
cell.alpha = 1
cell.transform = .identity
}
}
} }
private func updateVisibleSpeakers() { private func updateVisibleSpeakers() {