We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When filling in the pin code, the indicator will not be round but square.
The text was updated successfully, but these errors were encountered:
Hi,
I have added two lines to drawing function like below and problem solved!
private func drawing(isNeedClear: Bool, tag: Int? = nil) { // Fill or cancel fill for indicators let results = pinIndicators.filter { $0.isNeedClear == isNeedClear } let pinView = isNeedClear ? results.last : results.first pinView?.isNeedClear = !isNeedClear pinView?.layer.cornerRadius = 0.5 * (pinView?.bounds.size.width)! // add these lines pinView?.clipsToBounds = true UIView.animate(withDuration: ALConstants.duration, animations: { pinView?.backgroundColor = isNeedClear ? .clear : .white }) { _ in isNeedClear ? self.pin = String(self.pin.dropLast()) : self.pincodeChecker(tag ?? 0) } }
Sorry, something went wrong.
No branches or pull requests
When filling in the pin code, the indicator will not be round but square.
The text was updated successfully, but these errors were encountered: