Disabled Title Color of UIButton set in the Interface Builder is ignored if the the UIButton Appearance disabled title color is set

Originator:pitiphong.ph
Number:rdar://46368973 Date Originated:November 30 2018
Status:Open Resolved:
Product:iOS SDK - UIKit Product Version:iOS 12.1
Classification:Bug Reproducible:Always
 
Summary:
Disabled Title Color of UIButton set in the Interface Builder is ignored if the the UIButton Appearance disabled title color is set

Steps to Reproduce:
1. Set the disabled title color of the UIButton Appearance in the App Delegate with `UIButton.appearance().setTitleColor(_:forState:)` method
2. Add a button in the View in Storyboard/Interface Builder
3. Set the disabled title color of the button in the Interface Builder to be other color than the Default one

Expected Results:
The button should use the disabled title color set in the Interface Builder

Actual Results:
The button uses the disable title color set in the Appearance instead

Version/Build:
iOS 12.1 Xcode 10.1 macOS 10.14.1


Configuration:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!