Interactive previews iPhone

Glass Effect Container

A view that combines multiple Liquid Glass shapes into a single shape that can morph individual shapes into one another

Glass Effect Container - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview

Platform Compatibility

iOS 26.0+ iPadOS 26.0+ macOS 26.0+ watchOS 26.0+ tvOS 26.0+

Tags

SwiftUI Code

Docs
VStack {
  GlassEffectContainer(spacing: 40.0) {
    HStack(spacing: 40.0) {
      Image(systemName: "1.circle")
        .frame(width: 80.0, height: 80.0)
        .font(.system(size: 36))
        .glassEffect()
        .offset(x: 30.0, y: 0.0)

      Image(systemName: "2.circle")
        .frame(width: 80.0, height: 80.0)
        .font(.system(size: 36))
        .glassEffect()
        .offset(x: -30.0, y: 0.0)
    }
  }

  HStack(spacing: 40.0) {
    Image(systemName: "1.circle")
      .frame(width: 80.0, height: 80.0)
      .font(.system(size: 36))
      .glassEffect()
      .offset(x: 30.0, y: 0.0)

    Image(systemName: "2.circle")
      .frame(width: 80.0, height: 80.0)
      .font(.system(size: 36))
      .glassEffect()
      .offset(x: -30.0, y: 0.0)
  }

}

Found an issue or have a suggestion?

Created: June 12, 2025Updated: November 16, 2026

Explore Other Components

Browse all
Current Value Gauge  - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
initializer

Current Value Gauge

Creates a gauge showing a value within a range and that describes the gauge’s purpose and current value

Sheet Placement - iOS on iPhone Duo - Landscape - Fully Open - Liquid Glass - Light Mode - Preview
modifier

Sheet Placement

Sets the placement of a presentation within the presenting view. This may fall back to center on small screens.

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

Content Unavailable

A placeholder for empty results with optional button

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

List Badge

Generates a badge for the view from an integer value.

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

Refreshable List

Marks this view as refreshable.

Disclosure Group - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview
initializer

Disclosure Group

A view that shows or hides another content view, based on the state of a disclosure control.

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

Content Unavailable Search

A pre-built placeholder for empty search results

Context Menu Preview - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview
modifier

Context Menu Preview

A context menu with custom preview