Properties (font, stack view spacing) with variation customization set in Interface Builder and changed at runtime get reset on app resign active in iOS 13

Originator:revoltes666
Number:rdar://7263526 Date Originated:Sep 13, 2019 at 2:52 PM
Status:Open Resolved:
Product:UIKit Product Version:
Classification: Reproducible:
 
If you add a variation customization (tested with Regular Width and Regular Height) for a property in Interface Builder (tested with font and stack view spacing), and then change it at runtime, it gets incorrectly reset to the value from Interface Builder when the app resigns active.

I attached a demo for this. Open it in Xcode 11 beta, run it on macOS Catalina beta. The label's font will be bold, and the stack view's spacing will be 60, as set in `ViewController.m`. Now switch to another app and return, and you'll see that the label's font will have been reset to ultra light and the stack view's spacing to 20, as set in Interface Builder.

Comments

Iulian Onofrei

Affects both an iOS app when building with Xcode 11 and running on iOS 13, and a Mac Catalyst app.

By revoltes666 at Oct. 7, 2019, 11:56 a.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!