You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
My app crashes during the SizeViewModifier .onReload perform self.size = proxy.size
Logs: "Recorded stack frame" and "enqueued from com.apple.main-thread (Thread 1)"
To Reproduce
Steps to reproduce the behavior
Sample code
Works fine when I navigate away from a view that has pager and then back SLOWLY, but doing so quickly causes this crash.
Pager(page: self.$currentPage, data: Array(0..<self.postArray.count), id: \.self, content: { index in
PostView(
loading: self.$loading,
chosenIndex: self.carouselStartIndex,
post: self.postArray[index],
nested: self.nested,
parent: self,
postIndex: index,
receivedIndex: self.$currentPage)
}) // pager
// .multiplePagination() // too buggy right now
.vertical()
.swipeInteractionArea(.page) // or else the post carousel can't be scrolled
.onPageChanged { newIndex in
if newIndex == 0 { self.counterCheck += 1 } else {
self.counterCheck = 0
}
self.currentPage = newIndex
if !self.loadedOnce { self.loadedOnce = true }
} // page change`
Expected behavior
A clear and concise description of what you expected to happen.
To not crash
Screenshots / Videos
If applicable, add screenshots to help explain your problem.
Environment:
OSX: [e.g. iOS] 13.5.1
Device [e.g. iPhone6] iPhone 11 Pro
SwiftUIPager version 1.9.0-beta.3
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
A clear and concise description of what the bug is.
My app crashes during the SizeViewModifier .onReload perform self.size = proxy.size
Logs: "Recorded stack frame" and "enqueued from com.apple.main-thread (Thread 1)"
To Reproduce
Works fine when I navigate away from a view that has pager and then back SLOWLY, but doing so quickly causes this crash.
Expected behavior
A clear and concise description of what you expected to happen.
To not crash
Screenshots / Videos
If applicable, add screenshots to help explain your problem.
Environment:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: