UITextView doesn't adjust intrinsic content size after changing exclusion paths

Originator:thedov
Number:rdar://36330838 Date Originated:05-Jan-2018 07:51 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:11
Classification:Other Bug Reproducible:Always
 
Summary:
When setting a UITextView’s exclusionPaths property on a UITextView inside a UIStackView (which is inside a UIScrollView), I expect the height of the text to change if the number of lines is different. Instead, it keeps the same height

Steps to Reproduce:
1. Run the attached playground
2. Tap the “Toggle image wrapping” button
3. Try again with the “Use hack” switch activated

Expected Results:
Steps 2 and 3 act the same

Actual Results:
The hack implements my expected behavior

Version:
11

Notes:

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!