diff --git a/Riot/Modules/SetPinCode/EnterPinCode/EnterPinCodeViewController.swift b/Riot/Modules/SetPinCode/EnterPinCode/EnterPinCodeViewController.swift index de4b84e9f..c87e1e760 100644 --- a/Riot/Modules/SetPinCode/EnterPinCode/EnterPinCodeViewController.swift +++ b/Riot/Modules/SetPinCode/EnterPinCode/EnterPinCodeViewController.swift @@ -253,8 +253,7 @@ final class EnterPinCodeViewController: UIViewController { private func renderPlaceholdersCount(_ count: Int) { UIView.animate(withDuration: 0.3) { - for view in self.placeholderStackView.arrangedSubviews { - guard let imageView = view as? UIImageView else { continue } + for case let imageView as UIImageView in self.placeholderStackView.arrangedSubviews { if imageView.tag < count { imageView.image = Asset.Images.placeholder.image } else {