what parameters can I edit for glass effects

Asked on 06/11/2025

1 search

In the context of Apple's WWDC sessions, you can edit several parameters for glass effects, particularly when using the new design features in UIKit and AppKit. Here are some of the parameters you can customize:

  1. Shape and Corner Configuration: By default, the glass is in a capsule shape. You can customize the shape using the new corner configuration API. The glass adapts its corner radius automatically based on its proximity to the container's corner (Build a UIKit app with the new design).

  2. Appearance (Light and Dark Mode): Glass has a dark and a light appearance, which adapts to the selected user interface style. It can switch between light and dark mode automatically to increase contrast (Build a UIKit app with the new design).

  3. Tint Color: You can set a custom tint color for the glass effect. This tint color automatically adapts to a vibrant version, and you can animate the effect to the new UI glass effect (Build a UIKit app with the new design).

  4. Opacity and Blend Mode: These are preconfigured to apply per appearance, allowing you to adjust the opacity and blend mode to achieve the desired look (Create icons with Icon Composer).

  5. Spacing and Interaction: For multiple glass elements, you can control the distance at which they start affecting each other using the spacing property. You can also set interactivity for custom views by setting isInteractive to true (Build a UIKit app with the new design).

These parameters allow for a high degree of customization, enabling developers to create visually appealing and interactive glass effects in their applications.