noppefoxwolf / MergeableView
PublicSwiftUI package for merging Liquid Glass views with drag gestures.
MergeableView is a SwiftUI package that helps developers create beautiful, interactive 'liquid glass' style interfaces where users can drag one item toward another to merge them together. It provides a few simple tools: a container that creates the glass effect and tracks positions, a tag for marking individual items as merge targets, and a handler that tells your app when a merge happens so you can combine the data. The package is designed for iOS and macOS apps and works with the latest Swift features.
How It Works
A developer browsing SwiftUI tools finds MergeableView while looking for glass-effect UI components for their app.
They see clear examples showing how few lines of code create beautiful glass buttons that can merge together.
They copy the package link and add it to their app, following the straightforward setup instructions.
They create a list of glass-styled tokens or buttons, marking each one with a simple tag so the system knows about them.
When they run the app, dragging one glass item toward another feels smooth and responsive, with both items glowing to show they're ready to merge.
When they release, the two items elegantly combine into one, exactly like the 'liquid glass' effect they wanted for their app.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.