ericviana/glacid
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
- 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")
]**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)
}
}<details> <summary>Screenshots</summary>
| Light | Dark | |-----|-----| | <img src="https://github.com/user-attachments/assets/9b60cf3f-f22e-4abd-8e73-6db3b9989364" width="320"/> | <img src="https://github.com/user-attachments/assets/9bf278e8-6f60-4c3b-b90c-cf957b11124e" width="320"/> |
</details>
**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.
Package Metadata
Repository: ericviana/glacid
Default branch: main
README: README.md