mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-02 19:30:39 +00:00
git-subtree-dir: submodules/LegacyComponents git-subtree-mainline:6086305304git-subtree-split:d559434616
23 lines
1009 B
Objective-C
23 lines
1009 B
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
@interface TGDraggableCollectionView : UICollectionView
|
|
|
|
@property (nonatomic, assign) bool draggable;
|
|
@property (nonatomic, assign) UIEdgeInsets scrollingTriggerEdgeInsets;
|
|
@property (nonatomic, assign) CGFloat scrollingSpeed;
|
|
|
|
@property (nonatomic, weak) UIView *draggedViewSuperview;
|
|
|
|
@end
|
|
|
|
@protocol TGDraggableCollectionViewDataSource <UICollectionViewDataSource>
|
|
@optional
|
|
|
|
- (void)collectionView:(UICollectionView *)collectionView itemAtIndexPath:(NSIndexPath *)sourceIndexPath willMoveToIndexPath:(NSIndexPath *)destinationIndexPath;
|
|
- (void)collectionView:(UICollectionView *)collectionView itemAtIndexPath:(NSIndexPath *)sourceIndexPath didMoveToIndexPath:(NSIndexPath *)destinationIndexPath;
|
|
|
|
- (bool)collectionView:(UICollectionView *)collectionView canMoveItemAtIndexPath:(NSIndexPath *)sourceIndexPath;
|
|
- (bool)collectionView:(UICollectionView *)collectionView canMoveItemAtIndexPath:(NSIndexPath *)sourceIndexPath toIndexPath:(NSIndexPath *)destinationIndexPath;
|
|
|
|
@end
|