How to create Liquid Glass Button in SwiftUI?

How do you feel about liquid glass in iOS 19 iOS 26?

SwiftUI - Liquid Glass - Button - Xcode 26 - iOS 26

Apple just introduced Liquid Glass design in today’s WWDC25 event. Here I am posting little snippet that how to apply liquid glass style to Button in SwiftUI.

SwiftUI’s Button has new modifier buttonStyle(.glass) to incorporate the new Liquid Glass design.

import SwiftUI

struct ContentView: View {
    var body: some View {
        ZStack {
            Color(.blue)
                .opacity(0.8)
            
            Button("Tap me") {
                
            }
            .buttonStyle(.glass)
        }
        .ignoresSafeArea()
    }
}

#Preview {
    ContentView()
}

Conclusion

  • Xcode 26, iOS 26 and other beta just released today. 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 🙂