---
title: "Discussion on \"How SwiftUI uses generic modifiers to create views\" | Hashnode"
description: "Discussion on \"How SwiftUI uses generic modifiers to create views\". In this short post I want give the intuition about how SwiftUI views work behind the scenes.\nWhy SwiftUI uses struct instead of classes?\nUIKit or AppKit, use classes for views, and our views descended from a class called UIView.If you look at the App..."
url: "https://hashnode.com/posts/how-swiftui-uses-generic-modifiers-to-create-views/5f900b5af2119b4f9e0ce180"
---

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

Discussion

# [How SwiftUI uses generic modifiers to create views](https://laurentbrusa.hashnode.dev/how-swiftui-uses-generic-modifiers-to-create-views?utm_source=hashnode&utm_medium=feed)

In this short post I want give the intuition about how SwiftUI views work behind the scenes. Why SwiftUI uses struct instead of classes? UIKit or AppKit, use classes for views, and our views descended from a class called UIView.If you look at the App...

Oct 21, 2020 · 3 min read · laurentbrusa.hashnode.dev  
Updated Oct 22, 2020  
Read the article

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

## Written by

[laurent brusa](https://hashnode.com/@multitudes)

@multitudes · Berlin, Germany

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

Writing about Swift (mostly!)

Hi there 👋 My name is Laurent and I am an iOS Developer based in Berlin.👨🏻‍💻 Please have a look at my portfolio . And at my CV ! My area of interest include: • Programming in Swift. • UIKit with both storyboards and programmatic UI. • Develop cross-platform native apps with SwiftUI. 📫 You can also DM me on Mastodon or Bluesky !

## Responses 1

Markdown supported · ⌘↵ to post

[Braydon Coyer](https://hashnode.com/@braydoncoyer)

[Oct 21, 2020](https://hashnode.com/posts/how-swiftui-uses-generic-modifiers-to-create-views/5f900b5af2119b4f9e0ce180/comment/5f902d8fc626a0545fb60278)

Enjoyed this one! I’ve been using SwiftUI for a few months now and love learning about how it works in the background!

[laurent brusa](https://hashnode.com/@multitudes)

[Oct 21, 2020](https://hashnode.com/posts/how-swiftui-uses-generic-modifiers-to-create-views/5f900b5af2119b4f9e0ce180/comment/5f902d8fc626a0545fb60278#reply-5f904cbc6aa1ed54804b9d7f)

Thank you. I thought it was worth sharing :)
