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.
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