---
title: "Discussion on \"Swift 5.4 supports writing @ViewBuilder attribute to stored properties\" | Hashnode"
description: "Discussion on \"Swift 5.4 supports writing @ViewBuilder attribute to stored properties\". Prior to Swift 5.4, if I wanted to implement a custom SwiftUI VStack,  I have to write like this \nstruct CustomStackView<Content: View >: View  {\n\n    let content: () -> Content\n\n    var body: some View {\n        VStack {\n            content()\n      ..."
url: "https://hashnode.com/posts/swift-54-supports-writing-viewbuilder-attribute-to-stored-properties/60b835ec25dc276ffb941256"
---

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

Discussion

# [Swift 5.4 supports writing @ViewBuilder attribute to stored properties](https://codewithvenkat.hashnode.dev/swift-54-supports-writing-viewbuilder-attribute-to-stored-properties?utm_source=hashnode&utm_medium=feed)

Prior to Swift 5.4, if I wanted to implement a custom SwiftUI VStack, I have to write like this struct CustomStackView<Content: View >: View { let content: () -> Content var body: some View { VStack { content() ...

Jun 3, 2021 · 1 min read · codewithvenkat.hashnode.dev  
Updated Jun 6, 2021  
Read the article

-   [#swift](https://hashnode.com/tag/swift)
-   [#ios](https://hashnode.com/tag/ios)

## Written by

[Venkatachalam perumal](https://hashnode.com/@venkatchm89)

@venkatchm89

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

iOS App Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
