Skip to main content
GlassText Hero Light

Create stunning glass text effects in SwiftUI

GlassText is a modern SwiftUI library that brings beautiful glass morphism text effects to your iOS, macOS, tvOS, and watchOS applications. Built on SwiftUI’s native glass effect API and optimized with Core Text for precise rendering.

Installation

Add GlassText to your project with Swift Package Manager

Quick start

Get started with your first glass text effect in minutes

API reference

Explore the complete API documentation

Examples

Browse real-world examples and use cases

Key features

Glass morphism effects

Apply clear, regular, and tinted glass effects to your text

Font customization

Full control over font weights, designs, and sizes

Cross-platform

Works on iOS, macOS, tvOS, and watchOS

Performance optimized

Uses Core Text for precise metrics and optimal rendering

Localization support

Built-in support for LocalizedStringResource

Modern SwiftUI

Built with Swift 6.2 and latest SwiftUI APIs

Simple, powerful API

import SwiftUI
import GlassText

struct ContentView: View {
    var body: some View {
        GlassText("Hello, World!", glass: .regular)
            .font(.largeTitle)
            .fontWeight(.bold)
            .frame(maxWidth: .infinity, maxHeight: .infinity)
            .background(
                LinearGradient(
                    gradient: Gradient(colors: [.blue, .purple]),
                    startPoint: .topLeading,
                    endPoint: .bottomTrailing
                )
            )
    }
}

Requirements

  • iOS 26.0+ / macOS 26.0+ / tvOS 26.0+ / watchOS 26.0+
  • Swift 6.2+
  • Xcode 26.0+
visionOS is not currently supported by GlassText.

What you can build

GlassText is perfect for:
  • Hero sections with eye-catching glass text overlays
  • App titles and branding elements with modern aesthetics
  • Dynamic backgrounds where text needs to stand out
  • Onboarding screens with compelling visual effects
  • Dashboard headers that blend beautifully with content

Get started

Ready to add glass morphism effects to your SwiftUI app? Start with the installation guide or jump straight into the quick start tutorial.

Build docs developers (and LLMs) love