The HEIC images in the Assets folder are displaying abnormally

I placed a PNG format image in the Assets folder and also added a HEIC format image that was converted from PNG. When the slicing is set to None, both images appear the same in the UIImageView. However, when I select "Horizontal and Vertical" for the Slices of both images, they no longer appear consistent, and the HEIC image displays abnormally.

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self addImageViews];
}

- (void)addImageViews
{
    UIImageView *heicImageView = [[UIImageView alloc] initWithFrame:CGRectMake(100, 100, [self imageViewSize].width,[self imageViewSize].height)];
    UIImageView *pngImageView = [[UIImageView alloc] initWithFrame:CGRectMake(100, 300, [self imageViewSize].width,[self imageViewSize].height)];
    heicImageView.image = [UIImage imageNamed:@"heic"];
    pngImageView.image = [UIImage imageNamed:@"png"];
    
    [self.view addSubview:heicImageView];
    [self.view addSubview:pngImageView];
}


- (CGSize)imageViewSize
{
    return CGSizeMake(146, 44);
}

@end

No obvious reason why this should be happening – please file a bug with your sample project.

The HEIC images in the Assets folder are displaying abnormally
 
 
Q