@@ -34,7 +34,7 @@ @implementation TrueSheetContainerView {
3434 TrueSheetHeaderView *_headerView;
3535 TrueSheetFooterView *_footerView;
3636 TrueSheetKeyboardObserver *_keyboardObserver;
37- BOOL _scrollViewPinningSet ;
37+ BOOL _scrollableSet ;
3838}
3939
4040#pragma mark - Initialization
@@ -52,7 +52,7 @@ - (instancetype)initWithFrame:(CGRect)frame {
5252 _contentView = nil ;
5353 _headerView = nil ;
5454 _footerView = nil ;
55- _scrollViewPinningSet = NO ;
55+ _scrollableSet = NO ;
5656 }
5757 return self;
5858}
@@ -81,9 +81,9 @@ - (void)layoutFooter {
8181 }
8282}
8383
84- - (void )setScrollViewPinningEnabled : (BOOL )scrollViewPinningEnabled {
85- _scrollViewPinningEnabled = scrollViewPinningEnabled ;
86- _scrollViewPinningSet = YES ;
84+ - (void )setScrollableEnabled : (BOOL )scrollableEnabled {
85+ _scrollableEnabled = scrollableEnabled ;
86+ _scrollableSet = YES ;
8787}
8888
8989- (void )setScrollableOptions : (NSDictionary *)scrollableOptions {
@@ -96,13 +96,13 @@ - (void)setScrollableOptions:(NSDictionary *)scrollableOptions {
9696 }
9797}
9898
99- - (void )setupContentScrollViewPinning {
100- if (_scrollViewPinningSet && _contentView) {
99+ - (void )setupScrollable {
100+ if (_scrollableSet && _contentView) {
101101 CGFloat bottomInset = 0 ;
102102 if ([_insetAdjustment isEqualToString: @" automatic" ]) {
103103 bottomInset = [WindowUtil keyWindow ].safeAreaInsets .bottom ;
104104 }
105- [_contentView setupScrollViewPinning: _scrollViewPinningEnabled bottomInset: bottomInset];
105+ [_contentView setupScrollable: _scrollableEnabled bottomInset: bottomInset];
106106 }
107107}
108108
@@ -169,7 +169,7 @@ - (void)contentViewDidChangeSize:(CGSize)newSize {
169169}
170170
171171- (void )contentViewDidChangeChildren {
172- [self setupContentScrollViewPinning ];
172+ [self setupScrollable ];
173173}
174174
175175#pragma mark - TrueSheetHeaderViewDelegate
0 commit comments