Skip to content

uicollectionview: invalid layout attributes indexPath #550

@onmyway133

Description

@onmyway133

iOS 12.4

UICollectionView received layout attributes for a cell with an index path that does not exist

iOS 13

Layout attributes <MyApp.LayoutAttributes: 0x7fb7a6611ab0> index path: (<NSIndexPath: 0xc75068054d0a36d7> {length = 2, path = 0 - 0}); frame = (0 0; 375 248); non-affine transform; zIndex = 1; were received from the layout <MyApp.MyAppLayout: 0x7fb787fe84b0> but are not valid for the data source counts. Attributes will be ignored.

-> Check numberOfItems before creating layoutAttributes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions