insidegui / LiquidGlassFlag
PublicDemonstrates how to dynamically enable Liquid Glass in an iOS app at runtime
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
A developer learns about this sample project that shows how to enable Apple's Liquid Glass feature in iOS apps on demand.
The developer runs the sample app and sees a tabbed interface with Home, Explore, and Settings tabs.
When enabled, buttons and UI elements get Apple's beautiful glass-like appearance that looks like frosted glass over content.
In the Settings tab, there's a toggle to enable or disable Liquid Glass, with clear explanation of how it works.
Developer learns how to use a toggle to control who gets the glass effect
Developer sees how to randomly assign users to groups for gradual rollouts
The app reminds users to restart for changes to take effect, since the setting is read when the app first launches.
The developer now understands how to add a feature flag for Liquid Glass in their own apps, with options for toggles or random selection.
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.