刷新动效改为逐行渐入,增加从上到下依次出现的过渡效果
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -155,9 +155,17 @@ final class WordListViewController: UIViewController {
|
||||
} else {
|
||||
words.shuffle()
|
||||
}
|
||||
UIView.transition(with: tableView, duration: 0.25, options: .transitionCrossDissolve, animations: {
|
||||
self.tableView.reloadData()
|
||||
})
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user