Image grid discovery screen
Design a discovery screen full of thumbnail tiles, like Snapchat Discover. It scrolls infinitely and every tile shows a network image. Focus on which thread does the image decoding and how you cap memory.
Design a discovery screen full of thumbnail tiles, like Snapchat Discover. It scrolls infinitely and every tile shows a network image. Focus on which thread does the image decoding and how you cap memory.
Fetch the feed with cursor pagination, and let an ImageLoader actor go memory NSCache → disk cache → network with request merging and Task cancellation. Decode in the background, downsampled to the tile size, prefetch the next screenful, and cap memory with an NSCache limit and memory warnings.
iOS system designShort answerAdvanced
The first screen is a grid of photo thumbnails from an API, and tapping one opens a…
#image-loading #prefetch
iOS system designShort answerIntro
A travel booking app goes list → detail → booking. For each screen, how do you decide…
#prefetch #memory
iOS system designShort answerAdvanced
Design an infinite-scroll feed screen like Twitter's from the iOS client's point of view…
#image-loading
iOS system designShort answerBasics
For a mobile feed, would you paginate by offset or by cursor (keyset)? Justify it with…
#prefetch