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

Invalid sample AnimatablePair warning #8

Open
gavtron2000 opened this issue Sep 8, 2024 · 6 comments
Open

Invalid sample AnimatablePair warning #8

gavtron2000 opened this issue Sep 8, 2024 · 6 comments

Comments

@gavtron2000
Copy link

Hi there. Thanks for your work on DekKit.
I'm seeing some warnings pop up in the console when running on device:

Invalid sample AnimatablePair<AnimatablePair<CGFloat, CGFloat>, AnimatablePair<CGFloat, CGFloat>>(first: SwiftUI.AnimatablePair<CoreGraphics.CGFloat, CoreGraphics.CGFloat>(first: -0.6666666666666643, second: 0.0), second: SwiftUI.AnimatablePair<CoreGraphics.CGFloat, CoreGraphics.CGFloat>(first: 0.0, second: 0.0)) with time Time(seconds: 0.0) > last time Time(seconds: 0.016677249979693443)

I can't diagnose the cause etc, but I wanted to let you know.

@davidakoontz
Copy link

davidakoontz commented Sep 8, 2024 via email

@danielsaidi
Copy link
Owner

danielsaidi commented Sep 9, 2024

Thank you @gavtron2000 - I see it too 🤔

I haven't seen it before, wonder if it's something new.

Other people seem to have it too:

https://www.reddit.com/r/SwiftUI/comments/1ekye64/anybody_know_what_the_invalid_sample_animatable/

https://stackoverflow.com/questions/77836428/swiftui-changing-view-position-with-drag-raises-ui-bug

aheze/SwipeActions#22

Seems to be an underlying iOS bug.

@gavtron2000
Copy link
Author

Thanks @danielsaidi sorry I can't give any insight on how to fix it!

@danielsaidi
Copy link
Owner

@gavtron2000 No worries, I'm just happy you notified me.

However, it might just be some iOS system logging that shouldn't be there. Do you see any strange behavior when using the deck component?

@gavtron2000
Copy link
Author

My client has noticed some crashing when swiping through the deck component, which I'm trying to isolate. There is a very real possibility it is being caused by my code, but I noticed the errors when trying to isolate the bug.

@danielsaidi
Copy link
Owner

Perfect, let's keep this open in case we find something on our respective ends 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants