空缺格始终显示蓝色边框,方便识别可输入位置
This commit is contained in:
@@ -172,7 +172,7 @@ final class SpellingInputView: UIView, UITextFieldDelegate {
|
|||||||
label?.isHidden = filled.isEmpty
|
label?.isHidden = filled.isEmpty
|
||||||
|
|
||||||
let isCurrent = inputEnabled && blankIndex == cursorIndex
|
let isCurrent = inputEnabled && blankIndex == cursorIndex
|
||||||
box.layer.borderColor = isCurrent ? UIColor.tintColor.cgColor : UIColor.separator.cgColor
|
box.layer.borderColor = UIColor.tintColor.cgColor
|
||||||
box.layer.borderWidth = isCurrent ? 2 : 1
|
box.layer.borderWidth = isCurrent ? 2 : 1
|
||||||
|
|
||||||
if isCurrent, filled.isEmpty {
|
if isCurrent, filled.isEmpty {
|
||||||
|
|||||||
Reference in New Issue
Block a user