Item Size and Line Spacing
Use the itemSize
property to specify the default size for each onscreen item, like the small squares in Figure 10-1. The minimumLineSpacing
and minimumInteritemSpacing
properties specify how much space you need wrapped between objects within each section. Line spacing always goes between each line in the direction of flow. For example, line spacing refers to the space between S0(0) and S0(6) in Figure 10-1 (left) or between S0(0) and S0(4) in Figure 10-1 (right). Item spacing is orthogonal (at right angles) to lines, specifying the gap to leave between each consecutive item, such as between S0(0) and S0(1) and between S0(1) and S0(2).
Figure 10-2 shows these properties in action, in this case using a vertical flow. ...
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.