liquid glass를 적용하는 방법 알려줘

Asked on 2025-07-25

1 search

To apply the Liquid Glass effect in your app, you can follow these general steps based on the platform you are using:

SwiftUI

  1. Declare a Local Namespace: Start by declaring a local namespace.
  2. Use the Glass Effect ID Modifier: Apply the Glass Effect ID modifier to your elements. This will allow you to create fluid morphing transitions.
  3. Associate Namespace: Associate the namespace with each of the glass effect elements in your stack and any interactive controls like toolbar buttons.

For more details, you can refer to the session Build a SwiftUI app with the new design (17:57).

UIKit

  1. Create a UI Visual Effect View: Use a UI Visual Effect view to create a new UI glass effect.
  2. Set the Effect in an Animation Block: Configure the effect to appear using a special materialized animation.
  3. Customize Shape: By default, the glass is in a capsule shape, but you can customize it using the new corner properties.

For more details, you can refer to the session Build a UIKit app with the new design (19:15).

AppKit

  1. Create an NSGlass Effect View: Create an NSGlass effect view for each glass element you want to display.
  2. Set Content View: Set each one's content view property to the desired view.
  3. Use Auto Layout: The glass effect view ties its geometry to the content view using auto layout.

For more details, you can refer to the session Build an AppKit app with the new design (17:30).

General Guidelines

  • Avoid Glass on Glass: Stacking liquid glass elements can make the interface feel cluttered.
  • Use Regular and Clear Variants Appropriately: Regular is versatile and adaptive, while Clear is more transparent and less adaptive.
  • Interactive Elements: Set isInteractive to true for interactive elements to enhance user experience.

For a deeper understanding of Liquid Glass, you can refer to the session Meet Liquid Glass (10:31).