what is alternative of .glassEffectUnion in UIKit

Asked on 2025-10-14

1 search

The alternative to .glassEffectUnion in UIKit is the use of the new Liquid Glass material. To achieve similar effects, you can use the UIVisualEffectView with a custom UIGlassEffect. This allows you to create interactive layers that float above your content, providing a distinct control layer. You can customize the appearance of the glass using the corner configuration API and adapt it to light or dark mode based on the user interface style.

For more detailed guidance on implementing this in your UIKit app, you can refer to the session Build a UIKit app with the new design (19:15).