UIAppearance setter called multiple times

Originator:robert.wijas
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
 
Summary:
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.

Notes:
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).

Comments

Swift Playground

https://github.com/PSPDFKit-labs/radar.apple.com/tree/master/28827675%20-%20UIAppearance%20setter%20called%20multiple%20times

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!