Summary:
UIImageViews rendered offscreen or not yet added to a window (or something else, I'm not really sure) aren't properly tinted.
Steps to Reproduce:
Initialize a UIImageView with a template image. Tint the UIImageView with a color that isn't black. Add it to a view then take a snapshot of the UIImageView and use that image in another (non-tinted) UIImageView. The 1st UIImageView will appear properly tinted while the 2nd one (the snapshot of the first before it was rendered on the screen) will be much darker.
Expected Results:
Both UIImageViews should look the same.
Actual Results:
The one that was snapshotted before being drawn on the screen is much darker. This is the behaviour observed on iOS 11.1 and iOS 10.3
Version:
iOS 11.2 (15C5092b)
Notes:
I attached a sample project that shows the issue when ran in iOS 11.1 and differently in iOS 11.1 and 11.2. And a screenshot where we can see an iOS 10.3 simulator without the issue and an iOS 11.2 simulator with the issue.
Description
Summary: UIImageViews rendered offscreen or not yet added to a window (or something else, I'm not really sure) aren't properly tinted.
Steps to Reproduce: Initialize a UIImageView with a template image. Tint the UIImageView with a color that isn't black. Add it to a view then take a snapshot of the UIImageView and use that image in another (non-tinted) UIImageView. The 1st UIImageView will appear properly tinted while the 2nd one (the snapshot of the first before it was rendered on the screen) will be much darker.
Expected Results: Both UIImageViews should look the same.
Actual Results: The one that was snapshotted before being drawn on the screen is much darker. This is the behaviour observed on iOS 11.1 and iOS 10.3
Version: iOS 11.2 (15C5092b)
Notes: I attached a sample project that shows the issue when ran in iOS 11.1 and differently in iOS 11.1 and 11.2. And a screenshot where we can see an iOS 10.3 simulator without the issue and an iOS 11.2 simulator with the issue.
- Product Version: iOS 11.2 (15C5092b) Created: 2017-11-01T19:52:23.428880 Originated: 2017-11-01T15:52:00 Open Radar Link: http://www.openradar.me/35299365