Open leohemanth opened 1 year ago
This addresses the issue: https://github.com/pointfreeco/swift-snapshot-testing/issues/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.
This addresses the issue: https://github.com/pointfreeco/swift-snapshot-testing/issues/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.