Xcode's document items should show Swift extensions differently
| Originator: | danielctull | ||
| Number: | rdar://25107586 | Date Originated: | 11-Mar-2016 11:22 AM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 7.2 |
| Classification: | UI/Usability | Reproducible: | Always |
Summary:
Currently Swift extensions are shown in the document items list with a [C] next to them, however extensions can be for types other than classes. Due to the increasing popularity of using extensions to separate protocol conformance, it would also be desirable to show any protocols that the extension conforms to in this list.
Steps to Reproduce:
Create a new file with an extension:
extension Thing: NSCoding {
}
Drop down the document items list.
Expected Results:
Extensions should show as either the correct type they are extending (E for enum, S for Struct etc) or it might be an idea to show them with an [E] next to them to show they are an extension.
As I described it would also be nice if the above extension declaration showed up as the following in the items list:
[E] Thing: NSCoding
to show that the extension to Thing conforms to NSCoding
Actual Results:
It is shown in the list as:
[C] Thing
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!