From a31f29d90cb8759d5469ec2d302c669bc7d3832e Mon Sep 17 00:00:00 2001 From: Genie Date: Thu, 13 Oct 2022 11:16:01 +0900 Subject: [PATCH] 0 not showing on keypad over 15.3 iOS version --- SmileLock/Classes/PasswordInputView.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SmileLock/Classes/PasswordInputView.swift b/SmileLock/Classes/PasswordInputView.swift index 58d7ce3..4eda277 100644 --- a/SmileLock/Classes/PasswordInputView.swift +++ b/SmileLock/Classes/PasswordInputView.swift @@ -120,6 +120,10 @@ open class PasswordInputView: UIView { let borderWidth = radius * borderWidthRatio let circleRadius = radius - borderWidth + //added by @seiritu + if (numberString.isEmpty) { + numberString = "0" + } //update label label.text = numberString