Auto Completion for Obj-C Categories not appearing in Swift
| Originator: | hungtruong | ||
| Number: | rdar://28288950 | Date Originated: | 13-Sep-2016 03:34 PM |
| Status: | Resolved: | ||
| Product: | Xcode 8 | Product Version: | 8.0 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: The autocompletion for Obj-C categories used in Swift code does not appear to work for certain classes, NSString being one of them. The code will compile correctly but beginning to type a category method on an NSString in Swift will now autocomplete. Steps to Reproduce: 1. Write a category on NSString in Objective-C 2. Add a Swift class that uses this category in its bridging header 3. Start typing the function name provided in the category. Expected Results: Expect to see autocompleted method names appear for the category method in Swift. Actual Results: No autocompleted method names appear, but completing them manually will work. Version: Xcode 8 Version 8.0 (8A218a) OS X El Capitan 10.11.6 (15G31) Notes: Curiously, when I tested the same methods but created a category on NSObject, the autocomplete did appear for those category methods. This appears to affect categories on NSString, and perhaps others. 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!