Skip to content

Commit 640a72e

Browse files
authored
Fix dismissal in UIKit demos. (#2986)
* Fix dismissal in UIKit demos. * Revert test code
1 parent 7e90901 commit 640a72e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Examples/CaseStudies/UIKitCaseStudies/LoadThenNavigate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class LazyNavigationViewController: UIViewController {
107107
override func viewDidAppear(_ animated: Bool) {
108108
super.viewDidAppear(animated)
109109

110-
if !isMovingToParent {
110+
if !isMovingToParent && store.optionalCounter != nil {
111111
store.send(.setNavigation(isActive: false))
112112
}
113113
}

Examples/CaseStudies/UIKitCaseStudies/NavigateAndLoad.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class EagerNavigationViewController: UIViewController {
100100
override func viewDidAppear(_ animated: Bool) {
101101
super.viewDidAppear(animated)
102102

103-
if !isMovingToParent {
103+
if !isMovingToParent && store.isNavigationActive {
104104
store.send(.setNavigation(isActive: false))
105105
}
106106
}

Examples/TicTacToe/tic-tac-toe/Sources/LoginUIKit/LoginViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public class LoginViewController: UIViewController {
126126
public override func viewDidAppear(_ animated: Bool) {
127127
super.viewDidAppear(animated)
128128

129-
if !isMovingToParent {
129+
if !isMovingToParent && store.twoFactor != nil {
130130
store.twoFactorDismissed()
131131
}
132132
}

0 commit comments

Comments
 (0)