Xcode 13 autocomplete issues with overrides

Let's say we are using UIViewController, and we are trying to override viewDidAppear.

Typing viewDidAppear to override should get me the full function ready, instead what i get is viewDidAppear(<#T##Bool#>)

Im using OS X 11.6.

Replies

If you type func viewD

then you will get the full template.

Otherwise Xcode interprets that you want to call the func, not to override it.

  • This is a bad point of Xcode 13 if its this way.

  • No, it is not ! For instance, in the override you will call super?viewDidAppear. You do not want Xcode to insert the full override template ! Xcode is just trying to guess your intent and just typing viewDidA does not provide any hint that you want to override. Even though Xcode could detect this is typed out of any function body and conclude it is a func definition. So feel free to send a bug request for enhancement.

  • When you are in the body of the class, type the method and it will autocomplete, i don't have to do func viewDidAppear , i can just write viewDidAppear then Xcode will autocomplete, i mean there is something has changed with Xcode 13 autocomplete. its no longer working the same way as of Xcode 12. we have to write func viewDidAppear so Xcode will get the template.

-- Deleted -- Duplicate, forum glitch.