---
title: "Discussion on \"Passing closure as an argument while initializing an object in Swift and SwiftUI\" | Hashnode"
description: "Discussion on \"Passing closure as an argument while initializing an object in Swift and SwiftUI\". Passing closure as an argument while initializing an object in Swift and SwiftUI"
url: "https://hashnode.com/posts/passing-closure-as-an-argument-while-initializing-an-object-in-swift-and-swiftui/6539ba69eb4f499fae6b24db"
---

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

Discussion

# [Passing closure as an argument while initializing an object in Swift and SwiftUI](https://conglesolutionx.hashnode.dev/passing-closure-as-an-argument-while-initializing-an-object-in-swift-and-swiftui?utm_source=hashnode&utm_medium=feed)

Passing closure as an argument while initializing an object in Swift and SwiftUI

Oct 26, 2023 · 6 min read · conglesolutionx.hashnode.dev  
Read the article

-   [#swift](https://hashnode.com/tag/swift)
-   [#swiftui](https://hashnode.com/tag/swiftui)
-   [#closure-in-swift](https://hashnode.com/tag/closure-in-swift)
-   [#closure-in-swiftui](https://hashnode.com/tag/closure-in-swiftui)

## Written by

[Cong Le](https://hashnode.com/@CongLe)

@CongLe · California, US

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

iOS Mobile Developer @Ally

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
