forked from applidium/ADLivelyCollectionView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathADLivelyCollectionView.h
32 lines (28 loc) · 1.09 KB
/
ADLivelyCollectionView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// ADLivelyCollectionView.h
// ADLivelyCollectionView
//
// Created by Romain Goyet on 18/04/12.
// Copyright (c) 2012 Applidium. All rights reserved.
//
#import <UIKit/UIKit.h>
extern NSTimeInterval ADLivelyDefaultDuration;
typedef NSTimeInterval (^ADLivelyTransform)(CALayer * layer, float speed);
extern ADLivelyTransform ADLivelyTransformCurl;
extern ADLivelyTransform ADLivelyTransformFade;
extern ADLivelyTransform ADLivelyTransformFan;
extern ADLivelyTransform ADLivelyTransformFlip;
extern ADLivelyTransform ADLivelyTransformHelix;
extern ADLivelyTransform ADLivelyTransformTilt;
extern ADLivelyTransform ADLivelyTransformWave;
extern ADLivelyTransform ADLivelyTransformGrow;
@interface ADLivelyCollectionView : UICollectionView <UICollectionViewDelegate, UICollectionViewDataSource> {
id <UICollectionViewDelegate> _preLivelyDelegate;
id <UICollectionViewDataSource> _preLivelyDataSource;
CGPoint _lastScrollPosition;
CGPoint _currentScrollPosition;
ADLivelyTransform _transformBlock;
}
- (CGPoint)scrollSpeed;
- (void)setInitialCellTransformBlock:(ADLivelyTransform)block;
@end