Skip to content

Commit 2d700bd

Browse files
committed
Update PasscodeLockViewController on viewWillAppear
1 parent 08e64b7 commit 2d700bd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

PasscodeLock/PasscodeLockViewController.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,17 @@ public class PasscodeLockViewController: UIViewController, PasscodeLockTypeDeleg
8282
public override func viewDidLoad() {
8383
super.viewDidLoad()
8484

85-
updatePasscodeView()
8685
deleteSignButton?.enabled = false
8786

8887
setupEvents()
8988
}
9089

90+
public override func viewWillAppear(animated: Bool) {
91+
super.viewWillAppear(animated)
92+
93+
updatePasscodeView()
94+
}
95+
9196
public override func viewDidAppear(animated: Bool) {
9297
super.viewDidAppear(animated)
9398

0 commit comments

Comments
 (0)