We are currently planning to create the documents using comments. So any one have any idea how to achieve that. As i have checked most of the post that Doxygen/headerdoc don't support Swift.
Unfortunately, neither HeaderDoc nor Doxygen support Swift , you can use markDown and produce document pages with Jazzy and here is a tutorial for it Swift Markdown
Now you can use DocC check tutorial here Tutorial with Xcode 13 and Apple DocC framework