I just filed the following suggestion via the Feedback assistant. I'm posting it here for having a URL to refer to / for public discussion. How do you think about this - would you like to have this tiny detail improvement in Xcode as well?
When using the code completion to override methods, it would be very helpful if Xcode would automatically generate a call to the super-class implementation of the method.
Steps to reproduce:
1. Generate a new iOS Project with the Single View application template.
2. Open the ViewController class.
3. Begin to type viewWillAppear… in the class to override the superclass method.
Expected:
A method stub with a call to the super method should be inserted:
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated) // <- this should be here automatically
<#code#>
}
Actual:
A method stub without a call to the super method is inserted:
override func viewWillAppear(_ animated: Bool) {
<#code#>
}