Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ios fullscreen #795

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

gultyayev
Copy link

@gultyayev gultyayev commented May 16, 2024

Fixes fullscreen animation

The main problem here, it seems, is that flexible margins were used on top of the container. This, in conjunction with flexibleWith & flexibleHeight, resulted in a non-fullscreen container which has a background. The AnimationView has the margins and they successfully center the animation within the fullscreen container, now).

Fixes ignored background color

Before, Light and Dark modes on iOS 12+ fell back to a hardcoded value instead of trying to fall back to the non-suffixed value, first. The PR fixes this by assigning an empty string. If no BackgroundColor is present, then the next check for .isEmpty will fire and a hardcoded fallback value will be used.

Removed orientation observer

Flexible margins seem to adjust the position of the animation automatically. So, we can remove the unneeded listener.

Closes #794

@gultyayev gultyayev requested a review from timbru31 as a code owner May 16, 2024 14:55
@gultyayev
Copy link
Author

Check fails seem to be unrelated to my changes

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.

iOS fullscreen not working correctly
1 participant