123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #import <Foundation/Foundation.h>
- #import <QuartzCore/QuartzCore.h>
- #import <UIKit/UIKit.h>
-
- #define DEG2RAD(degrees) (degrees * M_PI / 180)
- #define SIDEBAR_ANIMATIONS \
- @"SidebarFacebookAnimation", \
- @"SidebarAirbnbAnimation", \
- @"SidebarLuvocracyAnimation", \
- @"SidebarFeedlyAnimation", \
- @"SidebarFlipboardAnimation", \
- @"SidebarWunderlistAnimation"
-
-
- typedef NS_ENUM(NSInteger, SidebarTransitionStyle)
- {
- SidebarTransitionStyleFacebook,
- SidebarTransitionStyleAirbnb,
- SidebarTransitionStyleLuvocracy,
- SidebarTransitionStyleFeedly,
- SidebarTransitionStyleFlipboard,
- SidebarTransitionStyleWunderlist
- };
-
- typedef NS_ENUM(NSInteger, Side)
- {
- LeftSide,
- RightSide,
- };
-
-
- @class SidebarAnimation;
- @interface SidebarAnimation : NSObject
-
- + (void)animateContentView:(UIView *)contentView
- sidebarView:(UIView *)sidebarView
- fromSide:(Side)side
- visibleWidth:(CGFloat)visibleWidth
- duration:(NSTimeInterval)animationDuration
- completion:(void (^)(BOOL finished))completion;
-
- + (void)reverseAnimateContentView:(UIView *)contentView
- sidebarView:(UIView *)sidebarView
- fromSide:(Side)side
- visibleWidth:(CGFloat)visibleWidth
- duration:(NSTimeInterval)animationDuration
- completion:(void (^)(BOOL finished))completion;
-
- + (void)resetSidebarPosition:(UIView *)sidebarView;
- + (void)resetContentPosition:(UIView *)contentView;
-
- +(UIView*)overlayContentView:(CGRect)frame;
-
- +(void)setOverlayContentColor:(UIColor*)color;
- +(UIColor*)overlayContentColor;
-
- @end
|