From d14ae41706a37b756d2cab3aa6b975c7d8c3b55f Mon Sep 17 00:00:00 2001 From: fish Date: Tue, 21 Jul 2026 22:35:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=86=99=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E4=BB=85=E5=88=B7=E6=96=B0=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E5=AD=97=E6=AF=8D=E6=98=BE=E7=A4=BA=EF=BC=8C=E4=B8=8D=E5=86=8D?= =?UTF-8?q?=E9=87=8D=E7=BD=AE=E6=95=B4=E4=B8=AA=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- .../LearnEnglish/Views/QuizViewController.swift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/LearnEnglish/LearnEnglish/Views/QuizViewController.swift b/LearnEnglish/LearnEnglish/Views/QuizViewController.swift index c14d645..03fa367 100644 --- a/LearnEnglish/LearnEnglish/Views/QuizViewController.swift +++ b/LearnEnglish/LearnEnglish/Views/QuizViewController.swift @@ -425,7 +425,15 @@ final class QuizViewController: UIViewController { isUppercase.toggle() UserDefaults.standard.set(isUppercase, forKey: "spelling_uppercase") updateCaseButton() - restart() + selectedOption = nil + let words = config.words.map { word in + let text = isUppercase ? word.word.uppercased() : word.word.lowercased() + return Word(categoryId: word.categoryId, word: text, phonetic: word.phonetic, + meaning: word.meaning, example: word.example, exampleMeaning: word.exampleMeaning) + } + questions = QuizGenerator.makeQuestions(mode: config.mode, words: words) + showQuestion() + spellingView.activate() } private func updateCaseButton() {