paint-brush
TableView, CollectionView Infinite Scrolling: An Easy Way in Swiftby@mrigankgupta
3,097 reads
3,097 reads

TableView, CollectionView Infinite Scrolling: An Easy Way in Swift

by mrigankgupta10mDecember 17th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

A framework for infinite scroll allows users to load content continuously, eliminating the need for user’s explicit actions. The trickiest part was the interfacing with network. It took some time to figure out how to separate it from the dependency of network stack. We need an Inter-actor/ Controller which maintains number of visible rows, maintain current page count and update all of these when it gets next page data array from the network. An interface between Pageable and network stack which has two methods. This is a clean way to separate Pageable library from your networking code as well as clean.

Company Mentioned

Mention Thumbnail
featured image - TableView, CollectionView Infinite Scrolling: An Easy Way in Swift
mrigankgupta HackerNoon profile picture
mrigankgupta

mrigankgupta

@mrigankgupta

L O A D I N G
. . . comments & more!

About Author

mrigankgupta HackerNoon profile picture
mrigankgupta@mrigankgupta

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite