mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-22 08:48:21 +00:00
Summary: Adding a new layout-invalidation API, telling the layout object to query and rebuild the layout for all items in the section controller. This works with `UICollectionViewFlowLayout` and should work with other custom layouts (including our own). Issue fixed: #360, #459 - [x] All tests pass. Demo project builds and runs. - [x] I added tests, an experiment, or detailed why my change isn't tested. - [x] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes. Closes https://github.com/Instagram/IGListKit/pull/499 Reviewed By: jessesquires Differential Revision: D4590274 Pulled By: rnystrom fbshipit-source-id: f87235be4e6c024bf979b831a8938be68895e011
31 lines
1.1 KiB
Objective-C
31 lines
1.1 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 <Foundation/Foundation.h>
|
|
|
|
#import <IGListKit/IGListKit.h>
|
|
|
|
@class IGTestObject;
|
|
|
|
@interface IGTestDelegateController : IGListSectionController <IGListSectionType, IGListDisplayDelegate, IGListWorkingRangeDelegate>
|
|
|
|
@property (nonatomic, strong, readonly) IGTestObject *item;
|
|
|
|
@property (nonatomic, assign) CGFloat height;
|
|
|
|
@property (nonatomic, copy) void (^itemUpdateBlock)();
|
|
@property (nonatomic, copy) void (^cellConfigureBlock)(IGTestDelegateController *);
|
|
@property (nonatomic, assign, readonly) NSInteger updateCount;
|
|
|
|
@property (nonatomic, assign) NSInteger willDisplayCount;
|
|
@property (nonatomic, assign) NSInteger didEndDisplayCount;
|
|
@property (nonatomic, strong) NSCountedSet *willDisplayCellIndexes;
|
|
@property (nonatomic, strong) NSCountedSet *didEndDisplayCellIndexes;
|
|
|
|
@end
|