ultraThick
TypeScriptstatic get ultraThick(): MaterialSwift declarationstatic let ultraThick: MaterialA mostly opaque material.
struct · iOS 15.0+ · SDK 27.1
struct MaterialA background material type. You can apply a blur effect to a view that appears behind another view by adding a material with the ``View/background(_:ignoresSafeAreaEdges:)`` modifier: ZStack { Color.teal Label("Flag", systemImage: "flag.fill") .padding() .background(.regularMaterial) } In the example above, the ``ZStack`` layers a ``Label`` on top of the color ``ShapeStyle/teal``. The background modifier inserts the regular material below the label, blurring the part of the background that the label --- including its padding --- covers:  A material isn't a view, but adding a material is like inserting a translucent layer between the modified view and its background:  The blurring effect provided by the material isn't simple opacity. Instead, it uses a platform-specific blending that produces an effect that resembles heavily frosted glass. You can see this more easily with a complex background, like an image: ZStack { Image("chili_peppers") .resizable() .aspectRatio(contentMode: .fit) Label("Flag", systemImage: "flag.fill") .padding() .background(.regularMaterial) }  For physical materials, the degree to which the background colors pass through depends on the thickness. The effect also varies with light and dark appearance:  If you need a material to have a particular shape, you can use the ``View/background(_:in:fillStyle:)`` modifier. For example, you can create a material with rounded corners: ZStack { Color.teal Label("Flag", systemImage: "flag.fill") .padding() .background(.regularMaterial, in: RoundedRectangle(cornerRadius: 8)) }  When you add a material, foreground elements exhibit vibrancy, a context-specific blend of the foreground and background colors that improves contrast. However using ``View/foregroundStyle(_:)`` to set a custom foreground style --- excluding the hierarchical styles, like ``ShapeStyle/secondary-swift.type.property`` --- disables vibrancy. > Note: A material blurs a background that's part of your app, but not what appears behind your app on the screen. For example, the content on the Home Screen doesn't affect the appearance of a widget.
static get ultraThick(): MaterialSwift declarationstatic let ultraThick: MaterialA mostly opaque material.
materialActiveAppearance(appearance: MaterialActiveAppearance): MaterialSwift declarationfunc materialActiveAppearance(_ appearance: MaterialActiveAppearance) -> MaterialSets an explicit active appearance for this material. Materials used as the `window` container background on macOS will automatically appear inactive when their the window appears inactive, but can be made to always appear active by setting the active appearance behavior to be always active: Text("Hello, World!") .containerBackground( Material.regular.materialActiveAppearance(.active), for: .window)
static get bar(): MaterialSwift declarationstatic let bar: MaterialA material matching the style of system toolbars.
static get thin(): MaterialSwift declarationstatic let thin: MaterialA material that's more translucent than opaque.
static get thick(): MaterialSwift declarationstatic let thick: MaterialA material that's more opaque than translucent.
static get regular(): MaterialSwift declarationstatic let regular: MaterialA material that's somewhat translucent.
static get ultraThin(): MaterialSwift declarationstatic let ultraThin: MaterialA mostly translucent material.
No declarations were skipped in this snapshot.