List adapter in iOS #1
1 min readAug 25, 2018
The adapters for table or collection allows us to quickly create complex lists with a small amount of code.
Adapter protocol
Extensions for collection and table
Other needed stuff
Adapter implementation
This adapter allows us to create table or collection with one section. In next article from this series problem with many section will be resolved.
Cell for table
Usage
Result
Summary
The same adapter could be used for both table and collection, only ItemPresenter are changing.
Source
Thank you for reading! If you liked this article, please clap so other people can read it too. I will also have more motivation for next article :) You can also see my other articles, maybe you will find something for you.
If you have any question or suggestion leave a comment.