How can I properly document a method with a completion handler in iOS swift
问题 I'm documenting the code for my company's iOS application, and now I've moved on to methods that have a completion handler. Is there a specific method for documenting completion handlers, or should I just put it as part of the parameters? for example: /** Description - Parameters: - parameter1: description - parameter2: description - completion: description */ Is this the right way or is there another better way? Or maybe it should be in the "Returns" part of the documentation? Thanks 回答1: /*