123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- #import <UIKit/UIKit.h>
- #import "UIScrollView+TOScrollBar.h"
- typedef NS_ENUM(NSInteger, TOScrollBarStyle) {
- TOScrollBarStyleDefault,
- TOScrollBarStyleDark
- };
- NS_ASSUME_NONNULL_BEGIN
- @interface TOScrollBar : UIView
- @property (nonatomic, assign) TOScrollBarStyle style;
- @property (nonatomic, assign) BOOL insetForLargeTitles;
- @property (nonatomic, assign) UIEdgeInsets verticalInset;
- @property (nonatomic, assign) CGFloat edgeInset;
- @property (nonatomic, strong) UIColor *trackTintColor;
- @property (nonatomic, assign) CGFloat trackWidth;
- @property (nonatomic, strong, nullable) UIColor *handleTintColor;
- @property (nonatomic, assign) CGFloat handleWidth;
- @property (nonatomic, assign) CGFloat handleMinimiumHeight;
- @property (nonatomic, assign, readonly) BOOL dragging;
- @property (nonatomic, assign) CGFloat minimumContentHeightScale;
- @property (nonatomic, weak, readonly) UIScrollView *scrollView;
- @property (nonatomic, assign) BOOL handleExclusiveInteractionEnabled;
- - (instancetype)initWithStyle:(TOScrollBarStyle)style;
- - (void)addToScrollView:(UIScrollView *)scrollView;
- - (void)removeFromScrollView;
- - (UIEdgeInsets)adjustedTableViewSeparatorInsetForInset:(UIEdgeInsets)inset;
- - (UIEdgeInsets)adjustedTableViewCellLayoutMarginsForMargins:(UIEdgeInsets)layoutMargins manualOffset:(CGFloat)offset;
- - (void)setHidden:(BOOL)hidden animated:(BOOL)animated;
- @end
- NS_ASSUME_NONNULL_END
|