Glacid is a SwiftUI package that provides a modifier to add glass-like textures to your shapes.
Add the following to your Package.swift
file:
- In Xcode, navigate to File > Add Packages...
- Enter the repository URL:
https://github.com/ericviana/Glacid
- 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")
]
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)
}
}
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.
This project is licensed under the MIT License. See the LICENSE file for details.