Skip to content

Commit 817ca08

Browse files
committed
Ensure the current state is hidden in presenting it as a modality
1 parent 1b0ec64 commit 817ca08

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/Transitioning.swift

+3
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ class ModalPresentTransition: NSObject, UIViewControllerAnimatedTransitioning {
9999
return animator
100100
}
101101

102+
// Ensure the current(initial) state is hidden. Because `fpc.transitionAnimator` can be nil if not.
103+
fpc.move(to: .hidden, animated: false)
104+
102105
fpc.suspendTransitionAnimator(true)
103106
fpc.show(animated: true) { [weak fpc] in
104107
fpc?.suspendTransitionAnimator(false)

0 commit comments

Comments
 (0)