fermoya / SwiftUIPager

Native Pager in SwiftUI
MIT License
1.3k stars 172 forks source link

[BUG]Double value cannot be converted to int because it is either infinite or NaN, issue rarely on iphone and always on VisionOS #339

Open kunalzigma opened 1 week ago

kunalzigma commented 1 week ago

To Reproduce Hard to reproduce on iPhone but it always persistent on visionOS simulator on MAC. Dragging the pager, causes this crash on visionOS.

Expected behavior Should not crash.

Screenshots / Videos

Screenshot 2024-11-14 at 10 10 18 AM

Environment: OS - iOS 15.8.3 and visionOS 2.1 Device - iPhone 7 & vision Simulator SwiftUIPager version - branch main

teameh commented 18 hours ago

I'm seeing the same issue on iPad when creating snapshots with snapshot-testing

image

Xcode 16.1 iPad Air 11" M2 iOS 18.1