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

iOS 17 Crash #135

Closed
fatihdurmaz opened this issue Sep 19, 2023 · 1 comment
Closed

iOS 17 Crash #135

fatihdurmaz opened this issue Sep 19, 2023 · 1 comment

Comments

@fatihdurmaz
Copy link

fatihdurmaz commented Sep 19, 2023

In iOS 17, there is a package error.

 private func recalculateTransition() {
        let indexAndPercentage = -contentOffset / width
        let percentage = (indexAndPercentage + 1).truncatingRemainder(dividingBy: 1)
        let lowIndex = Int(floor(indexAndPercentage)) // Thread 1: Swift runtime failure: Double value cannot be converted to Int because it is either infinite or NaN
        transition = TransitionProgress(from: itemsOrderedByIndex[safe: lowIndex], to: itemsOrderedByIndex[safe: lowIndex+1], percentage: percentage)
    }

Ekran Resmi 2023-09-19 09 38 34

Versions

  • Xcode: [Xcode 15]
  • Device: [iPhone15 Pro Max]
  • OS: [OS17]
  • Lbrary version [4.0.0]
@cecipirotto
Copy link
Contributor

solved in #134

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

No branches or pull requests

2 participants