Created
February 23, 2016 01:22
Revisions
-
There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,67 @@ // // UIScrollView+VKParallaxHeader.m // // Created by Marek Serafin on 2014-09-18. // Copyright (c) 2013 VG. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSInteger, VGParallaxHeaderMode) { VGParallaxHeaderModeCenter = 0, VGParallaxHeaderModeFill, VGParallaxHeaderModeTop, VGParallaxHeaderModeTopFill, }; typedef NS_ENUM(NSInteger, VGParallaxHeaderStickyViewPosition) { VGParallaxHeaderStickyViewPositionBottom = 0, VGParallaxHeaderStickyViewPositionTop, }; typedef NS_ENUM(NSInteger, VGParallaxHeaderShadowBehaviour) { VGParallaxHeaderShadowBehaviourHidden = 0, VGParallaxHeaderShadowBehaviourAppearing, VGParallaxHeaderShadowBehaviourDisappearing, VGParallaxHeaderShadowBehaviourAlways, } __deprecated; @interface VGParallaxHeader : UIView @property (nonatomic, assign, readonly) VGParallaxHeaderMode mode; @property (nonatomic, strong) UIVisualEffectView *visualEffectView; @property (nonatomic, assign, readwrite) VGParallaxHeaderStickyViewPosition stickyViewPosition; @property (nonatomic, assign, readwrite) NSLayoutConstraint *stickyViewHeightConstraint; @property (nonatomic, strong, readwrite) UIView *stickyView; @property (nonatomic, assign, readonly, getter=isInsideTableView) BOOL insideTableView; @property (nonatomic, assign, readonly) CGFloat progress; @property (nonatomic, assign, readonly) VGParallaxHeaderShadowBehaviour shadowBehaviour __deprecated; - (void)setStickyView:(UIView *)stickyView withHeight:(CGFloat)height; @end @interface UIScrollView (VGParallaxHeader) @property (nonatomic, strong, readonly) VGParallaxHeader *parallaxHeader; - (void)setParallaxHeaderView:(UIView *)view mode:(VGParallaxHeaderMode)mode height:(CGFloat)height visualEffectView:(UIVisualEffectView *)visualEffectView; - (void)setParallaxHeaderView:(UIView *)view mode:(VGParallaxHeaderMode)mode height:(CGFloat)height; - (void)setParallaxHeaderView:(UIView *)view mode:(VGParallaxHeaderMode)mode height:(CGFloat)height shadowBehaviour:(VGParallaxHeaderShadowBehaviour)shadowBehaviour __deprecated_msg("Use sticky view instead of shadow"); - (void)shouldPositionParallaxHeader; @end