How to create Liquid glass for custom view in Swift?

We have already discussed about How to adopt Liquid Glass in UIButton in Swift? It’s easy to adopt liquid glass design in any view with SwiftUI, I will add separate post for that. In this post let’s discuss about – create liquid glass for custom view in Swift.

Apple just introduced Liquid Glass design in WWDC25 event. Here I am posting little snippet that how to apply liquid glass style to UILabel in UIKit with Swift Language.

You have new UIGlassEffect a visual effect that renders a glass material to incorporate the new Liquid Glass design.

UILabel with Liquid Glass Effect in Swift

Here you can customize the property like isInteractive to give tap behavior with glass. Also as you can see I have added UILabel in effectView. You can add any other view in the same way.

Conclusion

  • Xcode 26, iOS 26 and other beta just released. I will explore and keep posted.

Let me know if you have any questions, comments, or feedback – via X (Twitter) or LinkedIn. Feel free to contact me and discuss what you are learning and developing.

Happy Coding 🙂