123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // EARestrictedScrollView.h
- //
- // Copyright (c) 2015-2016 Evgeny Aleksandrov. License: MIT.
- #import <UIKit/UIKit.h>
- @interface EARestrictedScrollView : UIScrollView
- /**
- * This property leads to containerView.subviews - all subviews except scroll indicators are stored there.
- */
- @property (nonatomic, copy, readonly) NSArray<UIView *> *containedSubviews;
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wproperty-attribute-mismatch"
- /**
- * When accessing this property with dot-notation - container offset will be used to calculate final value, so you can forget about implemetation details. Also lies in coordinate space of `contentView`.
- */
- @property (nonatomic, assign, getter=alignedContentOffset, setter=setAlignedContentOffset:) CGPoint contentOffset;
- #pragma GCC diagnostic pop
- /**
- * This is the rect property which defines restriction area in coordinate space of `contentView`. Use CGRectZero to reset restriction.
- */
- @property (nonatomic, assign) CGRect restrictionArea;
- /**
- * Should not be used, since it changes parent contentOffset that is being manipulated by subclass.
- *
- * @see contentOffset
- */
- - (void)setContentOffset:(CGPoint)contentOffset __attribute__((unavailable("use dot notation to access property")));
- /**
- * Should not be used, since it leads to parent contentOffset that is being manipulated by subclass.
- *
- * @see contentOffset
- */
- - (CGPoint)contentOffset __attribute__((unavailable("use dot notation to access property")));
- @end
|