Skip to content

Fix AnimatedImage scale logic to match SwiftUI.Image #35

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

Merged
merged 3 commits into from
Oct 29, 2019

Conversation

dreampiggy
Copy link
Collaborator

in #34 this PR, the contentMode (aspectFill) is ignored, so sometimes, the AnimatedImage may not layout as expected compared to Image.

This PR fix that, using the correct behavior as Image (base on Documentation and real behavior).

Note that .fit && aspectRatio == nil on macOS may not work exact the same as SwiftUI.Image because of limitation of public API, other cases and platform as matched.

@dreampiggy dreampiggy merged commit e50a326 into master Oct 29, 2019
@dreampiggy dreampiggy deleted the fix_animated_image_scale_logic branch October 29, 2019 07:26
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