iOS 11.2: UIBarButtonItem doesn't reset alpha correctly after navigation

Originator:brendan
Number:rdar://36076768 Date Originated:December 15 201
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 11.2
Classification:Bug Reproducible:Always
 
Area:
UIKit

Summary:
Navigating to a view controller from a push triggered by a UIBarButtonItem and then returning to the original view causes the UIBarButtonItem to appear greyed out and inactive, despite being tappable and enabled.

Sample project available here: https://github.com/brendanlensink/barbutton

Steps to Reproduce:
1. Open the sample project and run on an iOS 11.2 device.
2. Press the button labelled 'Left' in the top left.
3. Press the back button to return to the main view controller.

Expected Results:

The 'Left' UIBarButtonItem should appear the same as the right button, in its active state with a blue tint.

Actual Results:

The button appears faded.

Version/Build:

iOS 11.2

Notes: 

Pressing down on the button and dragging seems to restore the correct color.
The same behaviour happens with the right UIBarButtonItem as well.
The issue seems to be with the underlying UIButtonLabel, where the alpha is not correctly reset to 1.

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!