Recipe: Introducing Interactive Layout Effects
Flow layouts are fully controllable. When subclassing UICollectionViewFlowLayout
, you gain immediate real-time control over how items are sized and placed onscreen. This provides incredible power to you as a developer, letting you specify item presentation with great delicacy. You can use this power to develop flows that seem to work in three dimensions or ones that break the linear mold and transform columns and rows into circles, piles, Bezier curves, and more.
Customizable layout attributes include standard layout elements (frame
, center
, and size
), transparency (alpha
and hidden
), position on the z-axis (zIndex
), and transform (transform3d
). You adjust these when the flow layout requests element ...
Get The Core iOS Developer’s Cookbook, Fifth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.