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()
  }
}

Found an issue or have a suggestion?

Created: May 30, 2025Updated: May 30, 2025
Connect Wizard

Connect Wizard

Unlock insights App Store Connect doesn’t show you.

Get Started

Explore Other Components

Browse all
Custom Slider Ticks - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
initializer

Custom Slider Ticks

Creates a slider to select a value from a given range, subject to a step increment, which displays the provided labels and customizable ticks.

Hard ScrollEdgeEffect - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
style

Hard ScrollEdgeEffect

A scroll edge effect with a hard cutoff and dividing line

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

List Row Insets

Applies an inset to the rows in a list.

Semantic Colors - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview
type

Semantic Colors

DatePicker - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
initializer

DatePicker

Creates an instance that selects a Date with an unbounded range

ContainerRelativeShape - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
modifier

ContainerRelativeShape

A shape that is replaced by an inset version of the current container shape. If no container shape was defined, is replaced by a rectangle

Content Unavailable Search - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
type

Content Unavailable Search

A pre-built placeholder for empty search results

GroupBox With Label - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
initializer

GroupBox With Label

A GroupBox with Label