Skip to content

Conversation

Pastajello
Copy link

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

After Before
after before

Description of Change

When closing a MediaPicker (or any modal) from the Detail page in a FlyoutPage, the FlyoutPage could enter an infinite layout loop in ViewDidLayoutSubviews().

This fix ensures that any UIViewController currently presented modally (PresentationController.PresentedViewController == vc) or being dismissed (IsBeingDismissed) is skipped during layout. This prevents the infinite loop while allowing normal child controllers to layout correctly.

Issues Fixed

Fixes #25174

@rmarinho
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@Pastajello
Copy link
Author

I guess the relevant test is this one:
image

I have some troubles reproducing the issue on my end for now - device tests are failing to run my mac for some reason.
image

Fighting on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community ✨ Community Contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Camera preview is freezing when rotating and using FlyoutPage on iOS

2 participants