@@ -52,24 +52,50 @@ typedef NS_ENUM(NSUInteger, QMBParallaxGesture) {
52
52
53
53
54
54
55
- @interface QMBParallaxScrollViewController : UIViewController <UIGestureRecognizerDelegate>
55
+ @interface QMBParallaxScrollViewController : UIViewController <UIGestureRecognizerDelegate, UIScrollViewDelegate >
56
56
57
57
@property (nonatomic , strong ) id <QMBParallaxScrollViewControllerDelegate> delegate;
58
58
59
59
@property (nonatomic , strong , readonly ) UIViewController * topViewController;
60
60
@property (nonatomic , strong , readonly ) UIViewController<QMBParallaxScrollViewHolder> * bottomViewController;
61
61
62
62
@property (nonatomic , assign , readonly ) CGFloat topHeight;
63
- @property (nonatomic , assign , setter = setFullHeight:) CGFloat fullHeight;
64
- @property (nonatomic , assign , setter = setOverPanHeight:) CGFloat overPanHeight;
63
+ @property (nonatomic , assign , setter = setMaxHeight:) CGFloat maxHeight;
64
+
65
+ /* *
66
+ * Set the height of the border (margin from top) that has to be scrolled over to expand the background view.
67
+ * Default: 1.3 * topHeight
68
+ */
69
+ @property (nonatomic , assign , setter = setMaxHeightBorder:) CGFloat maxHeightBorder;
70
+
71
+ /* *
72
+ * Set the height of the border (margin from top) that has to be scrolled under to minimize the background view
73
+ * Default: fullHeight - 5.0f
74
+ */
75
+ @property (nonatomic , assign , setter = setMinHeightBorder:) CGFloat minHeightBorder;
76
+
77
+ /* *
78
+ * To enable section support for UITableViews, default: true if UITableView is client scrollview
79
+ * TODO: this option will disable decelerated scrolling (known bug)
80
+ */
81
+ @property (nonatomic , assign ) BOOL enableSectionSupport;
65
82
66
83
@property (nonatomic , readonly ) QMBParallaxState state;
67
84
85
+ /* *
86
+ * The Parallax Scrollview that embeds the bottom (forground) view
87
+ */
88
+ @property (nonatomic , readonly ) UIScrollView *parallaxScrollView;
89
+
90
+ /* *
91
+ * Use the scrollview delegate for custom actions
92
+ */
93
+ @property (nonatomic , weak ) id <UIScrollViewDelegate> scrollViewDelegate;
94
+
68
95
// inits
69
96
-(void ) setupWithTopViewController : (UIViewController *)topViewController andTopHeight : (CGFloat)height andBottomViewController : (UIViewController<QMBParallaxScrollViewHolder> *)bottomViewController ;
70
97
71
98
72
- - (void )parallaxScrollViewDidScroll : (CGPoint)contentOffset ;
73
99
// configs
74
100
75
101
/* *
0 commit comments