Multiline UILabel with limited height has wrong baseline anchors

Originator:katya.duomina
Number:rdar://FB13669766 Date Originated:03/02/2024
Status:Open Resolved:
Product:iOS SDK Product Version:
Classification:UI Bug Reproducible:
 
Multiline UILabel with limited height has wrong first/last baseline anchors. When the height constraint isn't a multiple of label's line height then first/last baseline anchors are misplaced. 

Steps: 
- Create a multiline label with height constraint. 
- Add first/last baseline constraint to another view 
* clearly visible when dynamic font in use 

Expected result: correct position of view that has constraint to the first/last baseline of label 
Actual result: first/last baseline of label are misplaced like the views constrained to them. 

Xcode version: 15.2

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!