---
title: "Discussion on \"Understanding SwiftUI - Why are Views in SwiftUI Struct and not Class?\" | Hashnode"
description: "Discussion on \"Understanding SwiftUI - Why are Views in SwiftUI Struct and not Class?\". In this 2nd article on Understanding SwiftUI, let's discuss how views work in SwiftUI."
url: "https://hashnode.com/posts/understanding-swiftui-why-are-views-in-swiftui-struct-and-not-class/63faad5efbbe0eb4aace55b9"
---

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

Discussion

# [Understanding SwiftUI - Why are Views in SwiftUI Struct and not Class?](https://blog.shivammaggu.com/understanding-swiftui-why-are-views-in-swiftui-struct-and-not-class?utm_source=hashnode&utm_medium=feed)

In this 2nd article on Understanding SwiftUI, let's discuss how views work in SwiftUI.

Feb 26, 2023 · 3 min read · blog.shivammaggu.com  
Read the article

-   [#swift](https://hashnode.com/tag/swift)
-   [#swiftui](https://hashnode.com/tag/swiftui)
-   [#struct](https://hashnode.com/tag/struct)
-   [#class](https://hashnode.com/tag/class)
-   [#source-of-truth](https://hashnode.com/tag/source-of-truth)

## Written by

[Shivam Maggu](https://hashnode.com/@shivammaggu)

@shivammaggu · India

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

Mobile Application Development

iOS developer specializing in Swift and anything tech that piques my interest.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
