Avatar ·

Does Swift support documentation generation? Are there built-in tools?

Hello everyone! I'm a beginner iOS developer and have been writing in Swift for about six months. I recently ran into a problem: my project has grown, and I started getting confused with my own functions and methods. Previously, I just wrote comments like `// this is a function for loading data`, but it's inconvenient — I have to constantly look into the code.\n\nI've heard that in some languages (e.g., Java with JavaDoc or Python with Sphinx) there are built-in tools for generating nice documentation directly from comments. I'm curious if there's something similar in Swift? Is it possible to automatically create HTML documentation for my project so I can quickly view descriptions of all classes, methods, and properties?\n\nI tried writing comments in the style `/// This property stores the user's name`, but I don't know if that works in any way.