fermoya / SwiftUIPager

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

[BUG] App Crashes detected #319

Open notoriouscode97 opened 1 year ago

notoriouscode97 commented 1 year ago

Describe the bug A clear and concise description of what the bug is. App crashes in Page.swift file when trying to set totalPages property line 40 I'm on 2.5.0 version using SPM To Reproduce

Expected behavior App shouldn't crash when changing totalPages property

Screenshots / Videos If applicable, add screenshots to help explain your problem.

Environment:

Additional context Here is the crash stack trace crash.txt

Catah97 commented 1 year ago

I'm getting a similar crash on 2.5.0 version. Seem to happening when totalPages is set to zero. On 2.4.0 is everything fine.

sisoje commented 10 months ago

Same for me. They "fixed" similar issue in 2.5.0 here: https://github.com/fermoya/SwiftUIPager/issues/279