Giter Site home page Giter Site logo

Comments (10)

apptekstudios avatar apptekstudios commented on June 10, 2024 1

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.

Thomas-Vos avatar Thomas-Vos commented on June 10, 2024

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.

mycroftcanner avatar mycroftcanner commented on June 10, 2024

what did you add it to?

from ascollectionview.

Thomas-Vos avatar Thomas-Vos commented on June 10, 2024

I added it to one of the ASCollectionViewSections in my code. I only needed to add it to one, but that could be different for you.

from ascollectionview.

Thomas-Vos avatar Thomas-Vos commented on June 10, 2024

Also (depending on the error message) you may need to add either an empty header or an empty footer.

from ascollectionview.

apptekstudios avatar apptekstudios commented on June 10, 2024

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.

apptekstudios avatar apptekstudios commented on June 10, 2024

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.

YunusDeveloper avatar YunusDeveloper commented on June 10, 2024

image

I cha

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.

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.

yusufonderd avatar yusufonderd commented on June 10, 2024

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.

berry95 avatar berry95 commented on June 10, 2024

스크린샷 2021-10-01 오후 8 49 17

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.