Xcode-beta (7A121l): Ability To Dynamically Get Enum Cases in Swift

Originator:john
Number:rdar://21674395 Date Originated:04-Jul-2015 10:23 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-beta (7A121l)
Classification:Feature (New) Reproducible:Always
 
Summary:
It might be helpful to dynamically get all of the cases in an enum. For instance, one might have a dropdown that is populated with enum cases. Rather than having a static list of the enum cases that is separate from the cases themselves, it seems more reliable to dynamically get the list.

Steps to Reproduce:

Expected Results:

Actual Results:

Regression:

Notes:

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!