noppefoxwolf

SwiftUI package for merging Liquid Glass views with drag gestures.

31
0
100% credibility
Found May 17, 2026 at 52 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Swift
AI Summary

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

1
🔍 Discovering the Package

A developer browsing SwiftUI tools finds MergeableView while looking for glass-effect UI components for their app.

2
📚 Reading the Simple Documentation

They see clear examples showing how few lines of code create beautiful glass buttons that can merge together.

3
🧩 Adding It to Their Project

They copy the package link and add it to their app, following the straightforward setup instructions.

4
🎨 Building Their Interface

They create a list of glass-styled tokens or buttons, marking each one with a simple tag so the system knows about them.

5
The Magic Moment

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.

🎉 Seamless Merging

When they release, the two items elegantly combine into one, exactly like the 'liquid glass' effect they wanted for their app.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 52 to 31 stars Sign Up Free
Repurpose This Repo

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 Repurpose
AI-Generated Review

What is MergeableView?

MergeableView is a SwiftUI package that adds interactive merge gestures to your app's interface. Think of it as the interaction pattern behind iOS emoji merging or Samsung's notes app: drag one token toward another, and they combine into a single element. The package wraps items in a shared "Liquid Glass" coordinate space and fires a callback with source and destination indices when a merge completes. You get three primitives to work with: `MergeableContainer` for the shared effect context, `.mergeableItem(id:)` to mark views as targets, and `.onMerge` to handle the result.

Why is it gaining traction?

This fills a specific gap in SwiftUI's toolkit. While Apple's framework gives you drag-and-drop for moving items between lists, there's no built-in way to handle the "sweep-to-merge" pattern that feels natural in mobile apps. The package uses geometry calculations to track the drag vector and find the nearest valid target, so merges only fire when items are actually dragged toward each other. The implementation is clean and composes naturally with standard SwiftUI patterns like `ForEach`.

Who should use this?

App developers building interfaces with tokenized content: smart home rule builders, task management apps with tag merging, onboarding flows with selectable option chips, or any interface where users might want to combine items by dragging them together. It's also useful for creative apps that want the "Liquid Glass" visual effect as part of a merge interaction.

Verdict

At 31 stars with no community feedback or third-party adoption, this is an early-stage experiment rather than a battle-tested library. The code quality looks solid with good test coverage for the geometry logic, but the 1.0% credibility score reflects genuine uncertainty about long-term maintenance. If you're targeting iOS 26 and need this specific interaction pattern, it works today; just treat it as a custom implementation you're prepared to maintain or fork if needed.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.