2525
2626#import < UIKit/UIKit.h>
2727
28+ NS_ASSUME_NONNULL_BEGIN
29+
2830typedef void (^INSInfinityScrollActionHandler)(UIScrollView *scrollView);
2931
3032typedef NS_ENUM (NSUInteger , INSInfiniteScrollBackgroundViewState) {
@@ -35,17 +37,21 @@ typedef NS_ENUM(NSUInteger, INSInfiniteScrollBackgroundViewState) {
3537@class INSInfiniteScrollBackgroundView;
3638
3739@protocol INSInfiniteScrollBackgroundViewDelegate <NSObject >
40+
3841@optional
42+
3943- (void )infinityScrollBackgroundView : (INSInfiniteScrollBackgroundView *)infinityScrollBackgroundView didChangeState : (INSInfiniteScrollBackgroundViewState)state ;
44+
4045@end
4146
4247@interface INSInfiniteScrollBackgroundView : UIView
43- @property (nonatomic , copy ) INSInfinityScrollActionHandler actionHandler;
44- @property (nonatomic , weak , readonly ) UIScrollView *scrollView;
4548
46- @property (nonatomic , weak ) id <INSInfiniteScrollBackgroundViewDelegate> delegate;
49+ @property (nonatomic , copy , nullable ) INSInfinityScrollActionHandler actionHandler;
50+ @property (nonatomic , weak , readonly , nullable ) UIScrollView *scrollView;
4751
48- @property (nonatomic , readonly ) INSInfiniteScrollBackgroundViewState state;
52+ @property (nonatomic , weak , nullable ) id <INSInfiniteScrollBackgroundViewDelegate> delegate;
53+
54+ @property (nonatomic , assign , readonly ) INSInfiniteScrollBackgroundViewState state;
4955@property (nonatomic , assign ) BOOL preserveContentInset;
5056
5157@property (nonatomic , assign ) BOOL enabled;
@@ -55,9 +61,12 @@ typedef NS_ENUM(NSUInteger, INSInfiniteScrollBackgroundViewState) {
5561
5662@property (nonatomic , assign ) CGFloat additionalBottomOffsetForInfinityScrollTrigger;
5763
58- - (instancetype )initWithHeight : (CGFloat)height scrollView : (UIScrollView *)scrollView ;
64+ - (instancetype )initWithHeight : (CGFloat)height scrollView : (nullable UIScrollView *)scrollView ;
5965
6066- (void )beginInfiniteScrolling ;
6167- (void )endInfiniteScrolling ;
6268- (void )endInfiniteScrollingWithStoppingContentOffset : (BOOL )stopContentOffset ;
69+
6370@end
71+
72+ NS_ASSUME_NONNULL_END
0 commit comments