# support for stored properties

{% tabs %}
{% tab title="💈範例" %}
````swift
struct CardView<Content: View>: View {

  // 👇🏻 New in Swift 5.4
  @ViewBuilder let content: Content
  
  // ⭐️ Swift will synthesize the following (internal) initializer:
  // ```
  // internal init(@ViewBuilder content: () -> Content) {
  //   self.content = content()
  // }
  // ```

  var body: some View {
    content
  }
}
````
{% endtab %}

{% tab title="📗 參考" %}
* Five Stars ⟩ [SwiftUI patterns: passing & accepting views](https://www.fivestars.blog/articles/swiftui-patter-passing-views/) - ViewBuilder support for stored properties.
{% endtab %}
{% endtabs %}
