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

Size is not propagated from LottieView to placeholder in SwiftUI #2267

Closed
denandreychuk opened this issue Dec 21, 2023 · 2 comments · Fixed by #2289
Closed

Size is not propagated from LottieView to placeholder in SwiftUI #2267

denandreychuk opened this issue Dec 21, 2023 · 2 comments · Fixed by #2289

Comments

@denandreychuk
Copy link

Body of LottieView is wrapper into ZStack, which cause placeholder not to inherit frame size from parent.

Example:

LottieView {
    try await DotLottieFile.named("animation")
} placeholder: {
    Image("placeholder")
        .resizable()
}
.resizable()
.frame(height: 100)
@annie-gupta
Copy link

Hi @denandreychuk , Please assign this issue to me. Thank you.

@denandreychuk
Copy link
Author

@annie-gupta unfortunately only someone from team members can do the assignments, but I think that you can make a fork and push the PR to fix this

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 a pull request may close this issue.

2 participants