danielsaidi / DeckKit

DeckKit is a Swift SDK that helps you build deck-based apps in SwiftUI.
MIT License
653 stars 14 forks source link

Invalid sample AnimatablePair warning #8

Open gavtron2000 opened 2 weeks ago

gavtron2000 commented 2 weeks ago

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 commented 2 weeks ago

Did you email the wrong person?  I’ve got no context for this issue. David Koontz     Email: @.     (360) 259-8380     http://about.me/davidakoontzOn Sep 8, 2024, at 2:06 AM, Gavin @.> wrote: 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.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

danielsaidi commented 2 weeks ago

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

https://github.com/aheze/SwipeActions/issues/22

Seems to be an underlying iOS bug.

gavtron2000 commented 2 weeks ago

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

danielsaidi commented 2 weeks ago

@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 commented 2 weeks ago

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 commented 2 weeks ago

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