IBInspectable should support enum values

Originator:igeek1
Number:rdar://18224964 Date Originated:03-Sep-2014 10:44 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 6.0 (6A280n)
Classification:Enhancement Reproducible:Not Applicable
 
Summary:
It would be useful to expose a property with some finite set of possible values that are selectable in IB.

Steps to Reproduce:
1. Create a UIView subclass that draws a triangle.
2. Create a property called triangleDirection.
3. The type of this property is a TriangleDirection, with possible values TriangleDirectionUp, TriangleDirectionLeft, TriangleDirectionDown, and TriangleDirectionRight.
4. Make this property IBInspectable.
5. Try to adjust the property in IB.

Expected Results:
The property exposes a menu with all the options from my custom enumerated type.

Actual Results:
The property is not exposed in IB.

Version:
Xcode 6.0 (6A280n)

Notes:


Configuration:


Attachments:

Comments

+1

By tyler.hillsman at Dec. 1, 2016, 10:31 p.m. (reply...)

+1

+1

+1

dubbed.

By jessica.l4m at May 16, 2015, 12:51 a.m. (reply...)

+1

Posted a radar for apple to dup.

+1

By weixiang77 at Oct. 14, 2014, 11:35 p.m. (reply...)

This should be number one feature :)

By vavelinkevin at Oct. 7, 2014, 8:28 p.m. (reply...)

I would also love to see this. +1


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!