Glacid

1.1.0

Glacid is a SwiftUI package that provides a modifier to add glass-like textures to views.
ericviana/Glacid

What's New

v1.1.0 - We got motion 🕺🏼

2025-05-02T01:32:59Z

New Features

Dynamic Device Orientation-Aware Borders

  • Added CoreMotion integration to make gradient borders respond to device movement

  • Glass effect borders now dynamically adjust based on device orientation
  • Smooth animations running at 60Hz refresh rate
  • Automatic resource management (starts/stops motion updates based on view lifecycle)

Compatibility

  • Requires iOS devices with CoreMotion capabilities
  • Maintains existing functionality for devices without motion sensors

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.

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

  • None
Last updated: Tue May 13 2025 19:29:50 GMT-0900 (Hawaii-Aleutian Daylight Time)