                 newCharacter != "" {
                 button.setTitle(newCharacter, for: .normal)
                 button.setTitleColor(.black, for: .normal)
-                button.layer.borderColor = (state?.completedBorderColor ?? .lightGray).cgColor
+                button.layer.borderColor = state?.completedBorderColor.cgColor
             }
             else {
                 button.setTitle(showsPlaceholder ? state?.pin?.uppercased()[i] : nil, for: .normal)

                      allowsBackspace: allowsBackspace,
                      showsPlaceholder: showsPlaceholder,
                      allowsAllCharacters: allowsAllCharacters,
                      completedBorderColor: completedBorderColor,
                      returnKeyType: .done)
        
        backgroundColor = .clear

            textField.text = nil
            createNewButtons()
        }
        else if oldValue?.showsPlaceholder != state?.showsPlaceholder ||
            oldValue?.focusBorderColor != state?.focusBorderColor ||
            oldValue?.inactiveBorderColor != state?.inactiveBorderColor ||
            oldValue?.completedBorderColor != state?.completedBorderColor ||
            oldValue?.errorBorderColor != state?.errorBorderColor {
            updateButtonStates()
        }
    }
