Type Method

horizontalGroupWithLayoutSize:subitem:count:

Creates a group of the specified size, containing an array of equally sized items arranged in a horizontal line up to the number specified by count.

Declaration

+ (instancetype)horizontalGroupWithLayoutSize:(NSCollectionLayoutSize *)layoutSize subitem:(NSCollectionLayoutItem *)subitem count:(NSInteger)count;

Discussion

When you set a value for the interItemSpacing property after using this initializer, the group keeps the same number of items and automatically resizes them to add the extra specified spacing between them.

See Also

Creating a Group

+ horizontalGroupWithLayoutSize:subitems:

Creates a group of the specified size, containing an array of items arranged in a horizontal line.

+ verticalGroupWithLayoutSize:subitems:

Creates a group of the specified size, containing an array of items arranged in a vertical line.

+ verticalGroupWithLayoutSize:subitem:count:

Creates a group of the specified size, containing an array of equally sized items arranged in a vertical line up to the number specified by count.

+ customGroupWithLayoutSize:itemProvider:

Creates a group of the specified size, with an item provider that creates a custom arrangement for those items.