Xcode popup for Swift functions should include variable names
| Originator: | futuretap | ||
| Number: | rdar://27445961 | Date Originated: | 20-Jul-2016 12:43 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | 8.0b3 |
| Classification: | Enhancement | Reproducible: | Always |
I have these functions in my code:
override func willTransition(to presentationStyle: MSMessagesAppPresentationStyle) {
}
override func didTransition(to presentationStyle: MSMessagesAppPresentationStyle) {
}
override func prepare(for segue: UIStoryboardSegue, sender: AnyObject?) {
}
The Xcode method abbreviates them to
willTransition(to:)
didTransition(to:)
prepare(for:sender:)
This feels really unintuitive. 'presentationStyle' and 'segue' are essential keywords conveying the meaning for the function. They should be displayed in the method popup like this:
willTransition(to presentationStyle:)
didTransition(to presentationStyle:)
prepare(for segue:sender:)
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!