---
title: "Discussion on \"Five Effective Commenting Practices for Swift-iOS\" | Hashnode"
description: "Discussion on \"Five Effective Commenting Practices for Swift-iOS\". We all can write comments, but do we know when and how to write comments on our code to make it more impactful?"
url: "https://hashnode.com/posts/five-effective-commenting-practices-for-swift-ios/63b06b54aaccf969eadf1c9d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Five Effective Commenting Practices for Swift-iOS](https://blog.sajidhasan.com/five-effective-commenting-practices-for-swift-ios?utm_source=hashnode&utm_medium=feed)

We all can write comments, but do we know when and how to write comments on our code to make it more impactful?

Dec 31, 2022 · 6 min read · blog.sajidhasan.com  
Read the article

-   [#commenting-practice](https://hashnode.com/tag/commenting-practice)
-   [#swift](https://hashnode.com/tag/swift)
-   [#swiftui](https://hashnode.com/tag/swiftui)
-   [#ios](https://hashnode.com/tag/ios)
-   [#ios-app-development](https://hashnode.com/tag/ios-app-development)

## Written by

[Sajid Hasan Shanta](https://hashnode.com/@snta)

@snta · Dhaka, Bangladesh

  
[View profile](https://hashnode.com/@snta)

iOS Engineer

## Responses 1

Markdown supported · ⌘↵ to post

[Ahmed Ramy](https://hashnode.com/@aramy)

[Dec 31, 2022](https://hashnode.com/posts/five-effective-commenting-practices-for-swift-ios/63b06b54aaccf969eadf1c9d/comment/63b0972642ec5647dfa0445a)

1 tiny improvement to this already great post, you can use the documentation feature of Xcode `///` which allows you to add useful annotations which can be found here

[developer.apple.com/documentation/xcode/formattin…](https://developer.apple.com/documentation/xcode/formatting-your-documentation-content)

> DocC is also applicable when documentation is used inside an package project

[Sajid Hasan Shanta](https://hashnode.com/@snta)

[Dec 31, 2022](https://hashnode.com/posts/five-effective-commenting-practices-for-swift-ios/63b06b54aaccf969eadf1c9d/comment/63b0972642ec5647dfa0445a#reply-63b0b46441a52c5546a63565)

I really appreciate your suggestion and the time you took to share it with me. I'll definitely keep it in mind for future projects and may even write a blog about my experiences using it.

[Ahmed Ramy](https://hashnode.com/@aramy)

[Dec 31, 2022](https://hashnode.com/posts/five-effective-commenting-practices-for-swift-ios/63b06b54aaccf969eadf1c9d/comment/63b0972642ec5647dfa0445a#reply-63b0b7c042ec5647dfa04608)

[Sajid Hasan Shanta](https://hashnode.com/@snta) My pleasure 🙏😄
