Objective-C snippets are presented in Xcode's Snippets section when user is working with swift source file

Originator:rafal.rebacz
Number:rdar://31182074 Date Originated:21-03-2018
Status:Open Resolved:
Product:Developer Tools Product Version:8.1 (8B62)
Classification: Reproducible:Always
 
Summary:
User may spend a lot of time filtering through the list of mixed (both Obj-C & swift) snippets.

Steps to Reproduce:
1. Install Xcode
2. Create new swift project
3. Navigate to swift file (e.g. AppDelegate)
4. Go to Code Snippets (Menu -> View -> Utilities -> Show Code Snippets)
5. Objective-C snippets are available on the list.

Expected Results:
Predefined Objective-C snippets should be available in Snippets area ONLY when user is editing Objective-C source file.

Actual Results:
Snippets list contains both Objective-C and swift snippets.

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!