汉选英答题反馈处英文答案下方添加音标

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-07-18 21:12:15 +08:00
parent 72b38ad416
commit dc2e6a142e
@@ -88,6 +88,11 @@ struct QuizView: View {
Text(selectedOption == question.answer ? "回答正确" : "正确答案:\(question.answer)")
.font(.headline)
.foregroundStyle(selectedOption == question.answer ? .green : .red)
if config.mode == .zhToEn, selectedOption != nil {
Text(question.word.phonetic)
.font(.subheadline)
.foregroundStyle(.secondary)
}
Button(currentIndex + 1 < questions.count ? "下一题" : "查看成绩") {
next()
}