Skip to content

SDAnimatedImageView doesn't render in iOS 14 Beta 1 #3040

@cyanzhong

Description

@cyanzhong

New Issue Checklist

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

No one assigned

    Labels

    apple bugapple's bug cause our framework author's painbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions