@@ -359,7 +359,11 @@ final class QuizViewController: UIViewController {
|
||||
wrongWords.append(question.word)
|
||||
}
|
||||
correct ? Haptics.correct() : Haptics.wrong()
|
||||
spellingView.deactivate()
|
||||
if config.isStudyMode {
|
||||
spellingView.freezeInput()
|
||||
} else {
|
||||
spellingView.deactivate()
|
||||
}
|
||||
spellingView.showResultState(correct: correct)
|
||||
showResult(correct, for: question)
|
||||
}
|
||||
|
||||
@@ -122,6 +122,11 @@ final class SpellingInputView: UIView, UITextFieldDelegate {
|
||||
refreshBoxes()
|
||||
}
|
||||
|
||||
func freezeInput() {
|
||||
inputEnabled = false
|
||||
refreshBoxes()
|
||||
}
|
||||
|
||||
func showResultState(correct: Bool) {
|
||||
let color = correct ? Theme.Color.correct : Theme.Color.wrong
|
||||
for position in blankPositions {
|
||||
|
||||
Reference in New Issue
Block a user