Post

Replies

Boosts

Views

Activity

Reply to iOS 15 crash at -collectionView:viewForSupplementaryElementOfKind:atIndexPath:
Update Turns out that my workaround did not work. I AM receiving an object, the crash is verified happening at the UIKit level and not in my code. The code runs in iOS 14 and below, and when supplementary cells for type .background(...) are removed, the code works fine. This only appears to be for cells of type .background(...) (this code: https://developer.apple.com/documentation/uikit/nscollectionlayoutdecorationitem/3199051-background) It is not viewForSupplementaryElementOfKind:atIndexPath: returning nil, it is an Objective-C layer returning nil per Xcode as this code works in iOS 14.x using Xcode 13.x
Nov ’21