lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
246 stars 17 forks source link

51208444: Using a named background color in Xcode breaks the ability to override the colour in viewDidLoad #21285

Open openradar-mirror opened 5 years ago

openradar-mirror commented 5 years ago

Description

Area: UIKit

Summary: When setting a background color of the view of a ViewController in a Storyboard using a named color from a xcasset color set, it's no longer possible to override the colour in viewDidLoad / viewWillAppear

Steps to Reproduce:

  1. Create a color set in the xcassets file
  2. Use the named color as the background color for a view in a storyboard
  3. Attempt to override the color with another color in viewDidLoad

Expected Results: Color should be overwritten

Actual Results: Call to view.backgroundColor = UIColor.orange is ignored.

Version/Build: Xcode Version 10.2.1 (10E1001) Swift 5.0

- Product Version: 10.2.1 Created: 2019-05-29T05:03:40.049938 Originated: 2018-05-29T00:00:00 Open Radar Link: http://www.openradar.me/51208444