UIAppearance setter called multiple times

Number:rdar://28827675 Date Originated:18-Oct-2016 08:21 PM
Status:Open Resolved:
Product:iOS SDK Product Version:5.0-10.0
Classification:Other Bug Reproducible:Always
Calling the same setter on appearance proxy results in multiple calls on actual instance. Each proxy call results in one call on the actual instance.

Steps to Reproduce:
Attached Swift playground illustrates this behavior.

Expected Results:
The setter on the instance should be called just once and should reflect the last call on matching appearance proxy.

Actual Results:
All appearance proxy calls for particular selector are replayed on the matching instance.

This is an issue when UIAppearance proxies are used to change the apps theme in runtime (e.g. switching between light/day and dark/night theme).


Swift Playground


By robert.wijas at Jan. 23, 2017, 3:56 p.m. (reply...)

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!