<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/understanding-container-background-for-widget-in-ios-17-rjnzurvb6" -->

---
title: Understanding Container Background for Widget in iOS 17
description: The Purpose of The Container Background in iOS 17, Apple introduced a new view modifier. This modifier allows developers to define the background view of a...
canonical: https://daily.dev/posts/understanding-container-background-for-widget-in-ios-17-rjnzurvb6
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Understanding Container Background for Widget in iOS 17 | daily.dev
og:description: The Purpose of The Container Background in iOS 17, Apple introduced a new view modifier. This modifier allows developers to define the background view of a...
og:url: https://daily.dev/posts/understanding-container-background-for-widget-in-ios-17-rjnzurvb6
og:image: https://api.daily.dev/og/posts/rjnzuRvB6.png
og:image:alt: Understanding Container Background for Widget in iOS 17
og:image:width: 1200
og:image:height: 630
og:locale: en
---

[Swift Senpai](https://daily.dev/sources/swiftsenpai)

[Read post](https://api.daily.dev/r/rjnzuRvB6)

# [Understanding Container Background for Widget in iOS 17](https://api.daily.dev/r/rjnzuRvB6 "Go to post")

The Purpose of The Container Background in iOS 17, Apple introduced a new view modifier. This modifier allows developers to define the background view of a widget. In order for the preview canvas to function correctly, it is still necessary to adopt container background. Adopting the container background is a simple and straightforward process.

[#apple](/tags/apple "Check all #apple posts")[#ios](/tags/ios "Check all #ios posts")

Sep 12, 2023•3m read time•From [swiftsenpai.com](https://api.daily.dev/r/rjnzuRvB6 "swiftsenpai.com")

[![Post cover image](https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6e72180e1e6432f1d116343288a4f65c?_a=AQAEufR)](https://api.daily.dev/r/rjnzuRvB6 "Go to post")

Table of contents

[The Purpose of The Container Background](https://api.daily.dev/r/rjnzuRvB6 "The Purpose of The Container Background")[How to Adopt Container Background](https://api.daily.dev/r/rjnzuRvB6 "How to Adopt Container Background")[Disable Container Background Removal](https://api.daily.dev/r/rjnzuRvB6 "Disable Container Background Removal")[Further Readings](https://api.daily.dev/r/rjnzuRvB6 "Further Readings")[Wrapping Up](https://api.daily.dev/r/rjnzuRvB6 "Wrapping Up")

12 Impressions

Comment

Bookmark

Copy

![Placeholder image for anonymous user](https://media.daily.dev/image/upload/s--qsFuKGv_--/t_logo,f_auto/public/noProfile)Share your thoughtsPost

[![Swift Senpai's image](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/18c570c17ff84c01b933a1559e428a5d)](https://daily.dev/sources/swiftsenpai)

[Swift Senpai](https://daily.dev/sources/swiftsenpai "https://daily.dev/sources/swiftsenpai")

Swift Senpai's platform covers topics related to Swift programming language, iOS app development, a... Read more

13 Followers

•

5 Upvotes

#### Would you recommend this post?

Copy link

WhatsApp

Facebook

X

New Squad

Copy linkShare with your friends

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Understanding Container Background for Widget in iOS 17","url":"https://daily.dev/posts/understanding-container-background-for-widget-in-ios-17-rjnzurvb6","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/understanding-container-background-for-widget-in-ios-17-rjnzurvb6"},"datePublished":"2023-09-12T08:07:46.091Z","dateModified":"2023-09-12T08:07:44.142Z","description":"The Purpose of The Container Background in iOS 17, Apple introduced a new view modifier. This modifier allows developers to define the background view of a...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6e72180e1e6432f1d116343288a4f65c?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6e72180e1e6432f1d116343288a4f65c?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Swift Senpai","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Swift Senpai","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/18c570c17ff84c01b933a1559e428a5d","url":"https://daily.dev/sources/swiftsenpai"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/understanding-container-background-for-widget-in-ios-17-rjnzurvb6","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"apple,ios","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Swift Senpai","item":"https://daily.dev/sources/swiftsenpai"},{"@type":"ListItem","position":3,"name":"Understanding Container Background for Widget in iOS 17"}]}
```

