IBInspectable long attribute name gets trunc

Originator:Dani.Arnaout
Number:rdar://32443251 Date Originated:May 27 2017, 11:24 AM
Status:Open Resolved:No
Product:Xcode Product Version:8.3.1
Classification:Bug Reproducible:Yes
 
Summary:
If you're creating your own IBInspectable attributes, then you've definitely notice that using 13 letters as an attribute name would cause it to get truncated.
Try to increase the width of the attributes inspector by stretching it, and only the 'values' fields will be stretched :/

It would be great if you can stretch the attributes inspector a little bit to get rid of that truncated attribute name!

There's this trick that you guys used in on of UITableViewCell attributes (Editing Accessory).
The workaround was to name it "Editing Acc.", but that isn't feasible currently, since it means that your property name should end with a '.' which generates a compiler error at build time!

Steps to Reproduce:
1- Create a new class called "CustomLabel" that is a subclass of "UILabel"
2- Create an IBInspectable property called veryLongAttribute of type NSString
3- Drag a UILabel to your Main.storyboard
4- Set its class to "CustomLabel"
5- Check the attribute inspector for the new attribute "Very Long Attribute"

Expected Results:
See the full attribute name "Very Long Attribute"

Observed Results:
The attribute name is truncated no matter what how you stretch the attributes inspector to increase the width :(

Version:
Xcode 8.3.1 (8E1000a)
macOS 10.12.5 (16F73)

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!