We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dde8261 commit 2b83726Copy full SHA for 2b83726
Sources/Hero2/Base/Transition.swift
@@ -216,7 +216,13 @@ extension Transition: UIViewControllerAnimatedTransitioning {
216
container.addSubview(backgroundView!)
217
container.addSubview(foregroundView!)
218
if automaticallyLayoutToView {
219
- toView!.frameWithoutTransform = container.frame
+ if !isPresenting {
220
+ toViewController?.presentationController?.containerViewWillLayoutSubviews()
221
+ container.layoutSubviews()
222
+ toViewController?.presentationController?.containerViewDidLayoutSubviews()
223
+ } else {
224
+ toView!.frameWithoutTransform = container.frame
225
+ }
226
toView!.layoutIfNeeded()
227
}
228
0 commit comments