@IBInspectable properties can not support enum

Originator:JakeLinAu
Number:rdar://24665876 Date Originated:16/02/2016
Status:Open Resolved:
Product:Developer Tools Product Version:
Classification:No Value Reproducible:
 
Summary:
@IBInspectable properties can not support enum even they inherit from supported types like `String`.

There are some discussions on github about this. https://github.com/JakeLin/IBAnimatable/issues/50

Steps to Reproduce:
1. Create an enum and let it inherit from `String` like `public enum AnimationType: String `
2. Create an @IBInspectable property using this enum like   `@IBInspectable public var animationType: AnimationType`
3. Can not find this property in "Attribute Inspector".

Expected Results:
Can find this property in "Attribute Inspector" and has a dropdown list for predefined values.

Actual Results:
Can not find this property in "Attribute Inspector".

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!