Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Fixing snapshot zoom issues on "plus" devices in Zoom-mode #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

benweidig
Copy link

Hi there,

thx for this awesome lib, but I think I found a problem:

On Plus-devices the center-panel that will transition to the side will be rendered too big at the end of the transition if the app is running "zoomed".

Why? The UIScreen.main.snappshotView(...) returns a UIView that will match the actual UIScreen, not the "zoomed" one, so we need to set the frame accordingly.

I have tested this in my app and it seems to work, but I haven't checked all possibilities. If you think there might be a problem in a certain config let me know and I check it out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant