Comments (10)
Fixed: V2.1.1
Please let me know if this does not solve the issue for you, I tested multiple cases and could no longer reproduce any crash with the new version :)
from ascollectionview.
Similar issue for me after upgrading to Xcode 13.0 and running the app on iOS 15:
the view returned from -collectionView:viewForSupplementaryElementOfKind:atIndexPath: does not match the element kind it is being used for. When asked for a view of element kind 'UICollectionElementKindSectionFooter' the data source dequeued a view registered for the element kind '7D3B1B07-7B46-449D-B7A2-E243CC0D9D98
In my case I was able to workaround the issue by adding the following:
.sectionFooter {
EmptyView()
}
from ascollectionview.
what did you add it to?
from ascollectionview.
I added it to one of the ASCollectionViewSection
s in my code. I only needed to add it to one, but that could be different for you.
from ascollectionview.
Also (depending on the error message) you may need to add either an empty header or an empty footer.
from ascollectionview.
Thanks for posting about this crash. It sounds like new behaviour on iOS 15 is enforcing that the same class of cell is always used for each supplementary type. Unfortunately I'm on holiday without a laptop so can't test but I think it will be a single line fix.
from ascollectionview.
Thanks for posting about this crash. It sounds like new behaviour on iOS 15 is enforcing that the same class of cell is always used for each supplementary type. Unfortunately I'm on holiday without a laptop so can't test but I think it will be a single line fix.
As I said no computer to test, but replacing the supplementaryEmptyKind
with just kind
on line 87 here should hopefully fix that crash.
from ascollectionview.
Thanks for posting about this crash. It sounds like new behaviour on iOS 15 is enforcing that the same class of cell is always used for each supplementary type. Unfortunately I'm on holiday without a laptop so can't test but I think it will be a single line fix.
As I said no computer to test, but replacing the
supplementaryEmptyKind
with justkind
on line 87 here should hopefully fix that crash.
I changed but I does not work. It says "Thread 1: "could not dequeue a view of kind: UICollectionElementKindSectionHeader with identifier 9DC51136-3548-42CA-9156-5FEDEFB485DA - must register a nib or a class for the identifier or connect a prototype cell in a storyboard"
from ascollectionview.
Hello, How can I install version 2.1.1 of library with pod ? When I'm adding to pod 'ASCollectionView-SwiftUI' in my podfile. Library version still looking in 1.7.1.
from ascollectionview.
Crash seems to have been fixed, but unknown insets appread on 15.0. You can check it in the official instafeed demo.
- working solution
if #available(iOS 15.0, *) {
UITableView.appearance().sectionHeaderTopPadding = .leastNormalMagnitude
}
from ascollectionview.
Related Issues (20)
- scrollPositionSetter is not working HOT 2
- Pod version appears not updated since 1.7.1 HOT 2
- iOS 15, ASCollectionView causes .sheet() to pop unexpectedly HOT 3
- Pull to refresh in iOS 15 with large title issue HOT 1
- No such module 'DifferenceKit' Xcode 13 HOT 1
- A bit sticky Drag & sort
- Terminating app due to uncaught exception 'NSInvalidArgumentException'
- ASCollectionView with horizontal scroll direction showing section header on side instead of top.
- macOS Support HOT 1
- ASCollectionView doesn't support ASSection with swipeToDelete?
- ASCollectionViewDelegate: support fast index scrolling?
- The operation couldn’t be completed. (SwiftPM.SPMRepositoryError error 3.)
- onScroll CPU issues HOT 1
- Unable to set scroll position of a cell
- Keep Showing Hidden Navbar
- Paging style ASTableView
- ASTableView warning (view does not load)
- Crash on IOS 16 HOT 1
- IOS16: NSInternalInconsistencyException: UICollectionViewLayoutAttributes: -setSize: requires finite dimensions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ascollectionview.