Skip to main content

Requirements

Before installing GlassText, ensure your project meets these requirements:
  • iOS 26.0+ / macOS 26.0+ / tvOS 26.0+ / watchOS 26.0+
  • Swift 6.2 or later
  • Xcode 26.0 or later
GlassText is not available for visionOS.

Swift Package Manager

Swift Package Manager is the recommended way to install GlassText. Choose one of the methods below:
1

Add package dependency in Xcode

  1. Open your project in Xcode
  2. Go to FileAdd Package Dependencies
  3. Enter the repository URL:
https://github.com/ailtonvivaz/GlassText
  1. Select the version you want to use (latest is recommended)
  2. Click Add Package
  3. Select your target and click Add Package again
2

Verify installation

Import GlassText in any Swift file to confirm installation:
import GlassText
If the import succeeds without errors, you’re ready to go!

Alternative: Package.swift

If you’re building a Swift package or prefer to manage dependencies via Package.swift, add GlassText to your package dependencies:
Package.swift
// swift-tools-version: 6.2
import PackageDescription

let package = Package(
    name: "YourPackage",
    platforms: [
        .iOS(.v26),
        .macOS(.v26),
        .tvOS(.v26),
        .watchOS(.v26),
    ],
    dependencies: [
        .package(url: "https://github.com/ailtonvivaz/GlassText", from: "1.0.0")
    ],
    targets: [
        .target(
            name: "YourTarget",
            dependencies: ["GlassText"]
        )
    ]
)
Use semantic versioning to specify the version range. Using from: "1.0.0" will automatically include compatible updates while avoiding breaking changes.

Platform support

GlassText supports the following platforms:
.iOS(.v26)

Version history

v1.0.0 (August 17, 2025)

Initial release featuring:
  • Glass morphism text effects using SwiftUI
  • Support for custom font weights (ultraLight to black)
  • Support for font designs (default, serif, monospaced, rounded)
  • Text alignment options (leading, center, trailing)
  • Optional tint color support
  • Multi-line text support
  • Cross-platform compatibility
  • Efficient text rendering using Core Text

Next steps

Now that GlassText is installed, head over to the quick start guide to create your first glass text effect.

Build docs developers (and LLMs) love