mirror of
https://github.com/tappollo/IGListKit.git
synced 2026-01-12 22:45:13 +08:00
Summary: Replaces #243 --------------------- - Clean up GridLayout + docs - Remove GridLayout scroll direction, not used/supported? - Fix some file target membership issues - Add GridLayout to umbrella header - "Sort by name" on xcode project directories - crtl-I auto format in xcode - re-gen docs Closes https://github.com/Instagram/IGListKit/pull/246 Differential Revision: D4219028 Pulled By: jessesquires fbshipit-source-id: 02d6d284c47dd4301549d9094727054156d596aa
44 lines
1.5 KiB
Objective-C
44 lines
1.5 KiB
Objective-C
/**
|
|
* Copyright (c) 2016-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import <IGListKit/IGListMacros.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/**
|
|
`IGListGridCollectionViewLayout` provides a vertically-scrolling, section-based grid layout for `UICollectionView`.
|
|
Items in the layout are displayed consecutively in a grid with exactly 1 item per section.
|
|
If items are square, the appearance would be similar to the iOS Photos app.
|
|
However, the size of the items for each section can vary.
|
|
*/
|
|
IGLK_SUBCLASSING_RESTRICTED
|
|
@interface IGListGridCollectionViewLayout : UICollectionViewLayout
|
|
|
|
/**
|
|
The minimum spacing to use between lines of items in the grid. The default value is `0.0`.
|
|
*/
|
|
@property (nonatomic, assign) IBInspectable CGFloat minimumLineSpacing;
|
|
|
|
/**
|
|
The minimum spacing to use between items in the same row. The default value is `0.0`.
|
|
*/
|
|
@property (nonatomic, assign) IBInspectable CGFloat minimumInteritemSpacing;
|
|
|
|
/**
|
|
The default size to use for cells. The default value is `(0.0, 0.0)`.
|
|
If this size is non-zero, the layout will use this item size for all items.
|
|
When the size is zero (the default), then the layout will query the collection view's delegate for the size.
|
|
*/
|
|
@property (nonatomic, assign) IBInspectable CGSize itemSize;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|