Member-only story

What is the Material Background modifier in SwiftUI?

Jay Wilson
8 min readJun 19, 2021

Follow me @mwilson_codes on Instagram

In this video, I discuss what exactly the material background modifier is. It was introduced at WWDC 2021. It’s a nifty little modifier that can be quite useful!!

Full transcript below. It was autogenerated using Descript, so there may be some errors.

[00:00:00] Hey y’all. So in this video, I’m going to walk you through how to add a material background to SwiftUI elements, like a text or a label. This was announces at WWDC 2021, and only currently works in Xcode 13 beta. So make sure you have those downloaded. Nothing’s really available public yet. It’s all developer beta except for probably Xcode 13, but like iOS and all that kind of stuff is developer beta.

Let’s walk through this material background, talk about what it is and all that fun stuff.

What does a material background mean? Well, it means that you can blur the background of a view so that the non blurred part is more prominent. So the background color can be in color. The background can be like a color or an image, and if you put a text in front of it…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Jay Wilson
Jay Wilson

Written by Jay Wilson

I like to solve problems using Swift, make YouTube videos, and take photos. I also really enjoy a good cup of coffee.

No responses yet

Write a response