Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 523 Bytes

MIGRATION GUIDE 4.0.0 TO 4.1.2.md

File metadata and controls

14 lines (12 loc) · 523 Bytes

IQListKit MIGRATION GUIDE 4.0.0 TO 4.1.2

1. Finding items

Old itemIdentifier function

func itemIdentifier<T: IQModelableCell>(_ type: T.Type, of model: T.Model,
                                            comparator: (T.Model, T.Model) -> Bool) -> IQItem?

New itemIdentifier function makes it easy to find an item by removing some arguments from the function

func itemIdentifier<T: IQModelableCell>(of type: T.Type, where predicate: (T.Model) -> Bool) -> IQItem?