File tree 1 file changed +5
-12
lines changed
React/Views/RefreshControl
1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ - (void)layoutSubviews
41
41
{
42
42
[super layoutSubviews ];
43
43
44
+ // Fix for bug #7976
45
+ if (self.backgroundColor == nil ) {
46
+ self.backgroundColor = [UIColor clearColor ];
47
+ }
48
+
44
49
// If the control is refreshing when mounted we need to call
45
50
// beginRefreshing in layoutSubview or it doesn't work.
46
51
if (_currentRefreshingState && _isInitialRender) {
@@ -49,18 +54,6 @@ - (void)layoutSubviews
49
54
_isInitialRender = false ;
50
55
}
51
56
52
- - (void )didMoveToWindow
53
- {
54
- [super didMoveToWindow ];
55
-
56
- // Since iOS 14 there seems to be a bug where refresh control becomes
57
- // visible if the view gets removed from window then added back again.
58
- // Calling endRefreshing fixes the layout.
59
- if (!_currentRefreshingState) {
60
- [super endRefreshing ];
61
- }
62
- }
63
-
64
57
- (void )beginRefreshingProgrammatically
65
58
{
66
59
UInt64 beginRefreshingTimestamp = _currentRefreshingStateTimestamp;
You can’t perform that action at this time.
0 commit comments