mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-23 19:31:21 +08:00
[Architecture] Add plans for new Section Info Objects (#2067)
* [section-infos-api] Add ASSectionInfo.h * Create Processes.md * Update ASSectionInfo.h * Update ASSectionInfo.h * Add more changes/info * More stuff * More updates * Make it a protocol * Update things * Oops * Update Misc.m * Update Overview.md * Update ASCollectionSection.h * Update ASCollectionSection.h
This commit is contained in:
22
plans/section-infos-api/ASExampleLayoutSectionInfo.m
Normal file
22
plans/section-infos-api/ASExampleLayoutSectionInfo.m
Normal file
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* An example of what a section info class might look like.
|
||||
*/
|
||||
@interface ASExampleLayoutSectionInfo : NSObject <ASSectionUserInfo>
|
||||
|
||||
@property (nonatomic, weak, nullable) ASCollectionView *collectionView;
|
||||
@property (nullable, copy) NSString *sectionName;
|
||||
|
||||
@property CGSize cellSpacing;
|
||||
@property NSInteger numberOfColumns;
|
||||
@property CGFloat columnWidth;
|
||||
@property CGSize headerSize;
|
||||
@property CGSize footerSize;
|
||||
@property UIEdgeInsets headerInsets;
|
||||
@property UIEdgeInsets footerInsets;
|
||||
@property ASExampleLayoutBackgroundType backgroundType;
|
||||
@property ASExampleLayoutRowAlignmentType rowAlignmentType;
|
||||
@end
|
||||
|
||||
@implementation ASExampleLayoutSectionInfo
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user