大小写切换按钮改为 A a 文字显示
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -37,8 +37,7 @@ final class QuizViewController: UIViewController {
|
||||
action: nil
|
||||
)
|
||||
private lazy var caseToggleItem = UIBarButtonItem(
|
||||
image: UIImage(systemName: "textformat"),
|
||||
style: .plain, target: self, action: #selector(toggleCase)
|
||||
title: "A a", style: .plain, target: self, action: #selector(toggleCase)
|
||||
)
|
||||
|
||||
private var current: QuizQuestion? {
|
||||
@@ -418,7 +417,8 @@ final class QuizViewController: UIViewController {
|
||||
}
|
||||
|
||||
private func updateCaseButton() {
|
||||
caseToggleItem.tintColor = isUppercase ? Theme.Color.accent : .tertiaryLabel
|
||||
caseToggleItem.title = isUppercase ? "A A" : "A a"
|
||||
caseToggleItem.tintColor = .label
|
||||
}
|
||||
|
||||
@objc private func speakCurrentWord() {
|
||||
|
||||
Reference in New Issue
Block a user