Daily iOS
UIKit

Sticky header, carousel, pull to refresh

A take-home review. The home screen needs (1) a filter header that stays pinned to the top while scrolling and (2) two rows of horizontally scrolling carousels, banners and restaurants. Which UIKit APIs would you use for each?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

One UICollectionViewCompositionalLayout: make the header sticky with pinToVisibleBounds on a boundary supplementary item, and build the horizontal sections as carousels with orthogonalScrollingBehavior.

Share a question