Interactive previews iPhone

Materials

All materials

Materials - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview

Platform Compatibility

iOS 15.0+ iPadOS 15.0+ macOS 12.0+ watchOS 8.0+ tvOS 15.0+ visionOS 1.0+

Tags

SwiftUI Code

Docs
VStack {
  HStack {
    HStack {
      smallRect
        .foregroundStyle(.ultraThinMaterial)
      smallRect
        .foregroundStyle(.thinMaterial)
      smallRect
        .foregroundStyle(.regularMaterial)
      smallRect
        .foregroundStyle(.thickMaterial)
      smallRect
        .foregroundStyle(.ultraThickMaterial)
    }
  }
  .padding()
    .background {
    meshGradient
  }
  HStack {
    HStack {
      smallRect
        .foregroundStyle(.ultraThinMaterial)
      smallRect
        .foregroundStyle(.thinMaterial)
      smallRect
        .foregroundStyle(.regularMaterial)
      smallRect
        .foregroundStyle(.thickMaterial)
      smallRect
        .foregroundStyle(.ultraThickMaterial)
    }
  }
  .padding()
    .padding(.horizontal)
    .background {
    Image(.cats)
      .resizable()
      .aspectRatio(contentMode: .fill)
      .frame(height: 50)
      .padding()
      .clipped()
  }
}

Material styles in this example

  1. .ultraThinMaterial
  2. .thinMaterial
  3. .regularMaterial
  4. .thickMaterial
  5. .ultraThickMaterial

Found an issue or have a suggestion?

Created: May 30, 2025Updated: May 30, 2025

Explore Other Components

Browse all
VisionOS background materials - visionOS - Liquid Glass - Light Mode - Preview
type

VisionOS background materials

All background materials on visionOS

List Badge - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview
modifier

List Badge

Generates a badge for the view from an integer value.

List Row Spacing - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview
modifier

List Row Spacing

Sets the vertical spacing between two adjacent rows in a List.

List Row Separator Tint - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview
modifier

List Row Separator Tint

Sets the tint color associated with a row.

CheckboxToggleStyle - macOS - Liquid Glass - Light Mode - Preview
style

CheckboxToggleStyle

A toggle style that displays a checkbox followed by its label.

LinearCapacityGaugeStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
style

LinearCapacityGaugeStyle

A gauge style that displays a bar that fills from leading to trailing edges as the gauge’s current value increases

InsetGroupedListStyle - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview
style

InsetGroupedListStyle

The list style that describes the behavior and appearance of an inset grouped list.

List Section Separator Tint - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview
modifier

List Section Separator Tint

Sets the tint color associated with a section.