Skip to content

Glacid is a SwiftUI package that provides a modifier to add glass-like textures to views. (Made this before Apple's liquid glass)

License

Notifications You must be signed in to change notification settings

ericviana/Glacid

Repository files navigation

Glacid

Swift SPM Version License

Glacid is a SwiftUI package that provides a modifier to add glass-like textures to your shapes.

Installation

Add the following to your Package.swift file:

Swift Package Manager

  1. In Xcode, navigate to File > Add Packages...
  2. Enter the repository URL:
https://github.com/ericviana/Glacid
  1. Select "Up to Next Major Version" and click Add Package.

Or add it to your Package.swift:

dependencies: [
    .package(url: "https://github.com/ericviana/Glacid.git", from: "1.0.0")
]

Usage

To apply the glass-like effect to a shape, just use the .glacid() modifier:

struct ContentView: View {
    var body: some View {
        Rectangle()
          .glacid()
          .frame(width: 100, height: 100)
    }
}
Screenshots
Light Dark

Contributing

Contributions are welcome! Here's how you can help:

  • Reporting bugs
  • Suggesting improvements
  • Adding new features
  • Writing documentation
  • Creating examples
  • Fixing typos

For bug reports and feature requests, please use the GitHub Issues section.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Glacid is a SwiftUI package that provides a modifier to add glass-like textures to views. (Made this before Apple's liquid glass)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages