IGListKit/Source/IGListCollectionViewDelegateLayout.h
Jesse Squires 95b779a584 Update .travis.yml and lint.sh, try to fix #1060 and lint errors #trivial
Summary:
project:
- fix file target membership issues in framework targets and test targets
- fix private/internal header imports, which shouldn't be `<IGListKit/` apparently
- fix static analyzer errors

travis:
- always install latest swiftlint
- ~~don't cache bundler, attempts to fix #1060~~
- remove markdown link check

swiftlint:
- make script non-failing if *any* version of swiftlint is installed
- warning if incorrect version is installed
- fail if not installed
- remove `scripts/generate_ci_yaml.rb`, we can just set the config file path directly
Closes https://github.com/Instagram/IGListKit/pull/1068

Differential Revision: D6885575

Pulled By: rnystrom

fbshipit-source-id: 51b7baa73feefcea71d870c1220d0382df484199
2018-02-02 13:16:46 -08:00

38 lines
1.9 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>
/**
Conform to `IGListCollectionViewDelegateLayout` to provide customized layout information for a collection view.
*/
@protocol IGListCollectionViewDelegateLayout <UICollectionViewDelegateFlowLayout>
/**
Asks the delegate to customize and return the starting layout information for an item being inserted into the collection view.
@param collectionView The collection view to perform the transition on.
@param collectionViewLayout The layout to use with the collection view.
@param attributes The starting layout information for an item being inserted into the collection view.
@param indexPath The index path of the item being inserted.
*/
- (UICollectionViewLayoutAttributes *)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout customizedInitialLayoutAttributes:(UICollectionViewLayoutAttributes *)attributes atIndexPath:(NSIndexPath *)indexPath;
/**
Asks the delegate to customize and return the final layout information for an item that is about to be removed from the collection view.
@param collectionView The collection view to perform the transition on.
@param collectionViewLayout The layout to use with the collection view.
@param attributes The final layout information for an item that is about to be removed from the collection view.
@param indexPath The index path of the item being deleted.
*/
- (UICollectionViewLayoutAttributes *)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout customizedFinalLayoutAttributes:(UICollectionViewLayoutAttributes *)attributes atIndexPath:(NSIndexPath *)indexPath;
@end