IBInspectable should support enum values
| Originator: | jessica.l4m | ||
| Number: | rdar://20985435 | Date Originated: | 15-May-2015 05:50 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 6.0 (6A280n) |
| Classification: | Enhancement | Reproducible: | Not Applicable |
This is a duplicate of rdar://18224964 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
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!