Static UITableView's predefined cells are not handling DynamicType correctly

Originator:peter.krassay
Number:rdar://42083674 Date Originated:July 11 2018, 9:12 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:
Classification:UI/Usability Reproducible:Always
 
Area:
Accessibility

Summary:
Using DynamicType with static UITableViews are not compatible.

Steps to Reproduce:
Please refer to the example project I've attached.
1. Create a static UITableView in IB.
2. Set the cell type to Basic (or Right Detail, etc.).
3. Configure the label to have a DynamicType font (body).
4. Tick Automatically Adjusts Font
5. Set Lines to zero.
(6. Optionally give estimatedRowHeight in viewDidLoad and override heightForRow with UITableViewAutomaticDimension)
7. Run app and adjust "Font size" with Accessibility Inspector.

Expected Results:
TableViewCell to automatically resize itself with the label inside.

Actual Results:
TableViewCell REMOVES the label and becomes empty.

Version/Build:
macOS High Sierra 10.13.5 (17F77)
Xcode Version 10.0 beta 3 (10L201y)

Configuration:
-

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!