---
title: "Discussion on \"How To Set the Background Color in SwiftUI\" | Hashnode"
description: "Discussion on \"How To Set the Background Color in SwiftUI\". Using ZStack to Set the Background Color of a View in SwiftUI"
url: "https://hashnode.com/posts/how-to-set-the-background-color-in-swiftui/6400c8274afe53670a9e320a"
---

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

Discussion

# [How To Set the Background Color in SwiftUI](https://bobbyg603.hashnode.dev/how-to-set-the-background-color-in-swiftui?utm_source=hashnode&utm_medium=feed)

Using ZStack to Set the Background Color of a View in SwiftUI

Mar 2, 2023 · 2 min read · bobbyg603.hashnode.dev  
Updated Mar 11, 2023  
Read the article

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

## Written by

[Bobby Galli](https://hashnode.com/@bobbyg603)

@bobbyg603 · Providence, RI

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

Making the world a better place one PR at a time 🌎

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
