汉选英答题反馈处英文答案下方添加音标
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -88,6 +88,11 @@ struct QuizView: View {
|
|||||||
Text(selectedOption == question.answer ? "回答正确" : "正确答案:\(question.answer)")
|
Text(selectedOption == question.answer ? "回答正确" : "正确答案:\(question.answer)")
|
||||||
.font(.headline)
|
.font(.headline)
|
||||||
.foregroundStyle(selectedOption == question.answer ? .green : .red)
|
.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 ? "下一题" : "查看成绩") {
|
Button(currentIndex + 1 < questions.count ? "下一题" : "查看成绩") {
|
||||||
next()
|
next()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user