Swift: Xcode doesn't autocomplete enum properties
| Originator: | ajpike | ||
| Number: | rdar://20099748 | Date Originated: | 09-Mar-2015 05:46 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 6.3 beta |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: Many UIKit objects have enum properties that can be assigned. When using Swift, Xcode doesn’t autocomplete these until you manually determine and type what kind of enum they are. Steps to Reproduce: Type the following: let myLabel: UILabel = UILabel() myLabel.textAlignment = . Expected Results: Autocomplete suggestions for the NSTextAlignment enum choices, for example “.Center” Actual Results: Nothing happens. Pressing escape will say “no completions”. If you type “NSTextAlignment.” it will then suggest the options, but you don’t need to type NSTextAlignment since the property is of that type. Notes: Getting suggestions here would be a big win for working with objects that have enum properties, as many UIKit objects do.
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!