-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ebc2abd
commit 31d921c
Showing
7 changed files
with
103 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...ollectionViewLayout/Classes/Lib/Internal/PBDCarouselCollectionViewLayoutPropertiesCache.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright (c) 2016 dudek. All rights reserved. | ||
*/ | ||
#import <Foundation/Foundation.h> | ||
|
||
@protocol PBDCarouselCollectionViewLayoutPropertiesCache <NSObject> | ||
|
||
/* | ||
* Content rect, considering content inset of collection view. | ||
*/ | ||
@property(nonatomic, readonly) CGRect contentRect; | ||
|
||
/* | ||
* Point on x axis that defines where actual content starts, considering size and content inset of collection view | ||
*/ | ||
@property(nonatomic, readonly) CGFloat contentStart; | ||
|
||
#pragma mark - Obtaining Item Position | ||
|
||
- (CGPoint)centerForItemAtIndexPath:(NSIndexPath *)indexPath; | ||
|
||
- (CGPoint)centerForHeaderViewAtIndexPath:(NSIndexPath *)path; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters