Change variables' names

This commit is contained in:
ismailgulek
2020-09-17 16:01:08 +03:00
parent 49ded6f0fc
commit b3ce9cdace
2 changed files with 16 additions and 16 deletions
@@ -337,9 +337,6 @@
<viewLayoutGuide key="safeArea" id="bFg-jh-JZB"/>
</view>
<connections>
<outlet property="blockedPinLabel" destination="H5g-FI-xEj" id="v2X-MF-cPQ"/>
<outlet property="blockedPinLineView" destination="Q0w-RD-JD3" id="7d4-JM-Mvl"/>
<outlet property="blockedPinView" destination="CBc-7Z-a5Z" id="4DN-Tq-CMW"/>
<outlet property="digitsStackView" destination="W0M-eq-abZ" id="xnb-6w-dtC"/>
<outlet property="forgotPinButton" destination="CRt-Fb-0Dq" id="kHp-wn-P0o"/>
<outlet property="inactiveLogoImageView" destination="8qz-Yk-9a4" id="DFZ-fF-0NC"/>
@@ -347,6 +344,9 @@
<outlet property="informationLabel" destination="bxI-mu-qng" id="pbX-aZ-inC"/>
<outlet property="logoImageView" destination="UHg-qE-anw" id="8C0-pd-i3b"/>
<outlet property="mainStackView" destination="DMT-DS-IA8" id="qYw-KO-M4k"/>
<outlet property="notAllowedPinLabel" destination="H5g-FI-xEj" id="QYZ-bo-QLC"/>
<outlet property="notAllowedPinLineView" destination="Q0w-RD-JD3" id="pJ4-2x-eTq"/>
<outlet property="notAllowedPinView" destination="CBc-7Z-a5Z" id="ySo-7J-MBK"/>
<outlet property="placeholderStackView" destination="xi9-P9-8WP" id="ynl-7M-Rpb"/>
</connections>
</viewController>
@@ -35,9 +35,9 @@ final class EnterPinCodeViewController: UIViewController {
@IBOutlet private weak var inactiveLogoImageView: UIImageView!
@IBOutlet private weak var logoImageView: UIImageView!
@IBOutlet private weak var placeholderStackView: UIStackView!
@IBOutlet private weak var blockedPinView: UIView!
@IBOutlet private weak var blockedPinLineView: UIView!
@IBOutlet private weak var blockedPinLabel: UILabel!
@IBOutlet private weak var notAllowedPinView: UIView!
@IBOutlet private weak var notAllowedPinLineView: UIView!
@IBOutlet private weak var notAllowedPinLabel: UILabel!
@IBOutlet private weak var digitsStackView: UIStackView!
@IBOutlet private weak var informationLabel: UILabel!
@IBOutlet private weak var forgotPinButton: UIButton!
@@ -119,8 +119,8 @@ final class EnterPinCodeViewController: UIViewController {
}
self.informationLabel.textColor = theme.textPrimaryColor
self.blockedPinLineView.backgroundColor = theme.noticeColor
self.blockedPinLabel.textColor = theme.noticeColor
self.notAllowedPinLineView.backgroundColor = theme.noticeColor
self.notAllowedPinLabel.textColor = theme.noticeColor
updateThemesOfAllImages(in: placeholderStackView, with: theme)
updateThemesOfAllButtons(in: digitsStackView, with: theme)
@@ -162,7 +162,7 @@ final class EnterPinCodeViewController: UIViewController {
self.title = ""
blockedPinLabel.text = VectorL10n.pinProtectionBlockedPin
notAllowedPinLabel.text = VectorL10n.pinProtectionBlockedPin
placeholderStackView.vc_removeAllArrangedSubviews()
for i in 0..<PinCodePreferences.shared.numberOfDigits {
@@ -217,7 +217,7 @@ final class EnterPinCodeViewController: UIViewController {
self.logoImageView.isHidden = true
self.informationLabel.text = VectorL10n.pinProtectionChoosePin
self.forgotPinButton.isHidden = true
self.blockedPinView.isHidden = true
self.notAllowedPinView.isHidden = true
}
private func renderNotAllowedPin() {
@@ -226,7 +226,7 @@ final class EnterPinCodeViewController: UIViewController {
self.logoImageView.isHidden = true
self.informationLabel.text = VectorL10n.pinProtectionChoosePin
self.forgotPinButton.isHidden = true
self.blockedPinView.isHidden = false
self.notAllowedPinView.isHidden = false
renderPlaceholdersCount(.max, error: true)
}
@@ -235,7 +235,7 @@ final class EnterPinCodeViewController: UIViewController {
self.inactiveView.isHidden = true
self.mainStackView.isHidden = false
self.informationLabel.text = VectorL10n.pinProtectionConfirmPin
self.blockedPinView.isHidden = true
self.notAllowedPinView.isHidden = true
// reset placeholders
renderPlaceholdersCount(0)
@@ -258,13 +258,13 @@ final class EnterPinCodeViewController: UIViewController {
self.logoImageView.isHidden = false
self.informationLabel.text = VectorL10n.pinProtectionEnterPin
self.forgotPinButton.isHidden = false
self.blockedPinView.isHidden = true
self.notAllowedPinView.isHidden = true
}
private func renderWrongPin() {
self.inactiveView.isHidden = true
self.mainStackView.isHidden = false
self.blockedPinView.isHidden = true
self.notAllowedPinView.isHidden = true
self.placeholderStackView.vc_shake()
}
@@ -300,14 +300,14 @@ final class EnterPinCodeViewController: UIViewController {
self.logoImageView.isHidden = true
self.informationLabel.text = VectorL10n.pinProtectionConfirmPinToDisable
self.forgotPinButton.isHidden = true
self.blockedPinView.isHidden = true
self.notAllowedPinView.isHidden = true
}
private func renderInactive() {
self.hideCancelButton()
self.inactiveView.isHidden = false
self.mainStackView.isHidden = true
self.blockedPinView.isHidden = true
self.notAllowedPinView.isHidden = true
}
private func renderPlaceholdersCount(_ count: Int, error: Bool = false) {