How do I add auto-complete comment in Xcode (Swift)?

前端 未结 4 976
無奈伤痛
無奈伤痛 2021-02-06 13:42

How can I add text to autocomplete like below, the \"Tells the element to activate itself...\" part,

This is what I have,

But the \"This is a t

4条回答
  •  悲哀的现实
    2021-02-06 14:25

        /**
         Put comments just above the funcion using the Markdown format like this
        */
        func exampleFunction() {
            print("The comments above will show up in the auto complete popover.")
        }
    

    Popover Example

    Full explanation @ Hacking With Swift

提交回复
热议问题