insidegui

Demonstrates how to dynamically enable Liquid Glass in an iOS app at runtime

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

This is a sample iOS app that demonstrates how developers can enable or disable Apple's Liquid Glass visual effect on demand. It shows two approaches: a simple toggle in settings that users can control, and a random selection system that developers can use to gradually roll out the feature to a percentage of users. The project is educational and meant to help developers understand how apps like WhatsApp might have implemented phased rollouts of Liquid Glass.

How It Works

1
πŸ” Discovering the Project

A developer learns about this sample project that shows how to enable Apple's Liquid Glass feature in iOS apps on demand.

2
πŸ“± Opening the Demo App

The developer runs the sample app and sees a tabbed interface with Home, Explore, and Settings tabs.

3
✨ Exploring the Glass Effect

When enabled, buttons and UI elements get Apple's beautiful glass-like appearance that looks like frosted glass over content.

4
βš™οΈ Finding the Settings Toggle

In the Settings tab, there's a toggle to enable or disable Liquid Glass, with clear explanation of how it works.

5
Seeing the Random Selection Logic
🎯
Feature Flag Path

Developer learns how to use a toggle to control who gets the glass effect

🎰
Random Roll Path

Developer sees how to randomly assign users to groups for gradual rollouts

6
πŸ”„ Restarting to Apply Changes

The app reminds users to restart for changes to take effect, since the setting is read when the app first launches.

πŸŽ‰ Understanding the Pattern

The developer now understands how to add a feature flag for Liquid Glass in their own apps, with options for toggles or random selection.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 19 to 19 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 LiquidGlassFlag?

LiquidGlassFlag is a Swift sample project that shows how to dynamically toggle Apple's Liquid Glass UI on and off in an iOS app using a user defaults flag. It demonstrates a technique inspired by how WhatsApp performs phased rollouts of the feature, allowing developers to force-enable Liquid Glass at runtime by setting `com.apple.SwiftUI.IgnoreSolariumOptOut` in standard user defaults while having `UIDesignRequiresCompatibility` set to `YES` in the app's Info.plist. The project includes a settings screen where users can flip a toggle to enable or disable the effect, and handles the requirement that the app must be quit and relaunched for changes to take effect since iOS caches this value at startup. It also implements a random coin-flip rollout on first launch to simulate A/B testing scenarios.

Why is it gaining traction?

With iOS 26 introducing Liquid Glass as a major UI paradigm, developers are scrambling to understand how to control it programmatically. This project fills a real gap: nobody wants to commit to a feature that might become deprecated or behave inconsistently, so a flag-based rollout mechanism is exactly what the ecosystem needs right now. The approach is refreshingly honestβ€”the author explicitly notes they would not ship this pattern in production, which makes the project more trustworthy as a learning tool. The demo GIF makes it immediately tangible rather than requiring you to clone and build just to see what's happening.

Who should use this?

iOS developers experimenting with Liquid Glass who want to understand the underlying mechanics before committing to a design. Framework authors evaluating whether to support the feature in their UI libraries. Teams investigating phased rollout strategies for design system changes. Note that this requires iOS 26 SDK, so it is strictly for forward-looking exploration, not current production work.

Verdict

LiquidGlassFlag is a useful proof-of-concept for understanding how Liquid Glass toggling works, but with only 19 stars, an explicit warning from the author against production use, and a dependency on a future SDK, it is not a production-ready solution. The 1.0% credibility score reflects its status as a demo rather than a library. Use it as a learning reference, not as-is in any shipped app.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.