Skip to content

Conversation

@leohemanth
Copy link

@leohemanth leohemanth commented Aug 4, 2023

This addresses the issue: #750

Looks like we are trying to update ViewController's root view's frame to avoid safe area influence, but this would change the directionalLayoutMargins of the view.

This PR updates the strategy to restore the margins after we update the frame.

This PR also adds unit tests for the same.

@leohemanth leohemanth changed the title Preserve UIView margins for snapshots Preserve View margins for snapshots Aug 4, 2023
@leohemanth leohemanth marked this pull request as draft August 4, 2023 20:41
@leohemanth leohemanth marked this pull request as ready for review August 16, 2023 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant