移除单词详情页跳转动效

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-07-20 00:04:49 +08:00
parent b1bcfc173e
commit 935bafa98a
@@ -154,14 +154,6 @@ extension WordListViewController: UITableViewDataSource, UITableViewDelegate {
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
Haptics.selection()
let detail = WordDetailViewController(word: category.words[indexPath.row], categoryName: category.name)
detail.preferredTransition = .zoom(options: .init()) { [weak self] _ in
guard let self else { return nil }
if self.tableView.cellForRow(at: indexPath) == nil {
self.tableView.scrollToRow(at: indexPath, at: .middle, animated: false)
self.tableView.layoutIfNeeded()
}
return (self.tableView.cellForRow(at: indexPath) as? WordCardCell)?.zoomSourceView
}
navigationController?.pushViewController(detail, animated: true)
}
}