Long names of IBInspectable properties get truncated in IB

Originator:igeek1
Number:rdar://18178618 Date Originated:29-Aug-2014 02:22 PM
Status:Duplicate of 17489777 Resolved:03-Sep-2014 07:08 PM
Product:Developer Tools Product Version:Xcode 6.0 (6A280e)
Classification:UI/Usability Reproducible:Always
 
Summary:
If I give an IBInspectable property a long name, such as placeholderBorederColor, it is truncated in IB as “Placeholder B…”, even though there should be plenty of room.

Steps to Reproduce:
1. Create a subclass of UIView.
2. Declare an inspectable property like this:

@property (strong, nonatomic) IBInspectable UIColor *placeholderBorderColor;

3. In a storyboard or xib, add a new UIView.
4. Set the view’s custom class to your class with the placeholderBorderColor inspectable property.
5. Try to edit the inspectable property in IB.
6. Notice that the name of the property is truncating.
7. Drag the left edge of the Utilities sidebar to the left to expand it.

Expected Results:
The color picker swatch and menu stay small, and the title gets longer, so you can read it.

Actual Results:
The menu expands, and the title stays small, so you can’t read the important part. This is especially annoying when you have many properties with a similar prefix. For example, I have these properties:

placeholderColor
placeholderBorderColor
placeholderTitle

These render in the IB Attributes Inspector as:
Placeholder…
Placeholder B…
Placeholder T…

Version:
Xcode 6.0 (6A280e)

Notes:


Configuration:


Attachments: screenshot: http://cl.ly/XHUy

Comments

+1

Would be nice to have more control over this.

Something like: @IBInspectable(name: "Border Color") var placeholderBorderColor: UIColor

Would also be nice if the names were allowed a little more room.


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!