-
Notifications
You must be signed in to change notification settings - Fork 228
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
The offset animation is not functioning as expected 🧐 #296
Comments
Try again with 3.0.0-beta2 ? |
Hi @dreampiggy |
A workaround is to use the explicit animation in SwiftUI. The Can you have a try with WebImage(url: URL(string: "https://picsum.photos/200"))
.scaledToFit()
.offset(x: isAnimating ? 0 : -1000)
.animation(.linear(duration: 2.0), value: isAnimating)
.onAppear {
withAnimation {
isAnimating = true
}
} For |
@dreampiggy, I attempted the solution you suggested, but unfortunately, it is still not working for me |
Adding the If you're using iOS 17 or later, you can try the following: WebImage(url: url)
.scaledToFit()
.geometryGroup() For versions prior to iOS 17, consider trying transformEffect(.identity): WebImage(url: URL(string: "https://picsum.photos/200"))
.scaledToFit()
.transformEffect(.identity) |
Hello,
I want to express my gratitude for developing this library; it has been working exceptionally well for my project. Lately, I've been attempting to apply an offset animation to a WebImage, but unfortunately, the image doesn't animate at all. Interestingly, when I substitute the WebImage with AsyncImage, the animation works perfectly. Does anyone have any insights into why this might be happening?
Code
Output
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-01-12.at.15.00.20.mp4
The text was updated successfully, but these errors were encountered: