Day #27

XCode documentation

Xcode documentation is really fun! You can tag functions with comments, which are then presented nicely when you OPT+Click the function in context. Here is an example on a data structure. There are tons of tags you can use, see more at https://nshipster.com/swift-documentation/

in-code example

xcode example

Other tips

Pressing CMD+OPT+"/" will auto generate a skeleton.
Josh Jaslow

Originally published 09/12/2021 https://pittcsc.org/, republished 09/09/2022.

Licensed under CC BY-NC-SA 4.0
Last updated on Sep 12, 2021 00:00 UTC
Built with Hugo
Theme Stack designed by Jimmy