UIBarButtonItem.titleTextAttributes(for: non-nomaml state) don't inherit titleTextAttributes(for: .normal)

Number:rdar://36179838 Date Originated:December 21 2017, 11:52 AM
Status:DUPLICATE OF 35221407 OPEN Resolved:
Product:iOS + SDK Product Version:11.2
Classification:UI/Usability Reproducible:Always

Before iOS 11, after setting font using UIBarButtonItem.setTitleTextAttributes(attributes, for: .normal) other non-normal states such as .highlighted will inherit the normal font attribute. On iOS 11 they no longer do.

Steps to Reproduce:
1. Launch sample app.
2. Tap the Edit button to see its font changes.

Code: https://mega.nz/#!1HYxzQaa!_dhql2A3rw5e4BLg8CBapf-5A5PHu1gn52XWWlqLkqY


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!