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.
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
addGlassLabel()
}
func addGlassLabel() {
let effectView = UIVisualEffectView(frame: CGRect(x: self.view.frame.midX - 70, y: self.view.frame.midY - 25, width: 140, height: 50))
let glassEffect = UIGlassEffect()
glassEffect.isInteractive = true
effectView.effect = glassEffect
effectView.layer.cornerRadius = 20
effectView.clipsToBounds = true
self.view.addSubview(effectView)
let label = UILabel(frame: CGRect(x: 10, y: 0, width: 140, height: 50))
label.text = "This is text only!"
label.textColor = .white
effectView.contentView.addSubview(label)
}
}

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 🙂