-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
apple bugapple's bug cause our framework author's painapple's bug cause our framework author's painbug
Description
New Issue Checklist
- I have read and understood the CONTRIBUTING guide
- I have read the Documentation
- I have searched for a similar issue in the project and found none
Issue Info
Info | Value |
---|---|
Platform Name | iOS |
Platform Version | 14.0 |
SDWebImage Version | 5.8.1 |
Integration Method | CocoaPods |
Xcode Version | 12.0 beta (12A6159) |
Repro rate | 100% |
Issue Description and Steps
This doesn't render anything:
SDAnimatedImageView *imageView = [SDAnimatedImageView new];
imageView.image = [UIImage systemImageNamed:@"trash"];
imageView.backgroundColor = [UIColor redColor];
imageView.frame = CGRectMake(100, 100, 100, 100);
[self.view addSubview:imageView];
UIImageView works fine:
UIImageView *imageView = [UIImageView new];
imageView.image = [UIImage systemImageNamed:@"trash"];
imageView.backgroundColor = [UIColor redColor];
imageView.frame = CGRectMake(100, 100, 100, 100);
[self.view addSubview:imageView];
Building the repro code with Xcode 11 works fine as well.
The root cause might be currentFrame
is nil, and displayLayer:
doesn't do anything.
Metadata
Metadata
Assignees
Labels
apple bugapple's bug cause our framework author's painapple's bug cause our framework author's painbug