Skip to content

Commit

Permalink
Fix dismissal in UIKit demos. (#2986)
Browse files Browse the repository at this point in the history
* Fix dismissal in UIKit demos.

* Revert test code
  • Loading branch information
mbrandonw committed Apr 14, 2024
1 parent 7e90901 commit 640a72e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class LazyNavigationViewController: UIViewController {
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)

if !isMovingToParent {
if !isMovingToParent && store.optionalCounter != nil {
store.send(.setNavigation(isActive: false))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class EagerNavigationViewController: UIViewController {
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)

if !isMovingToParent {
if !isMovingToParent && store.isNavigationActive {
store.send(.setNavigation(isActive: false))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public class LoginViewController: UIViewController {
public override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)

if !isMovingToParent {
if !isMovingToParent && store.twoFactor != nil {
store.twoFactorDismissed()
}
}
Expand Down

0 comments on commit 640a72e

Please sign in to comment.