GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AndroidPoet/LiquidKit

BranchesTags
Open more actions menu

Latest commit

 

History

19 Commits
19 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
buildSrc
buildSrc
 
 
docs
docs
 
 
gradle
gradle
 
 
iosApp
iosApp
 
 
liquidkit-navigation3
liquidkit-navigation3
 
 
liquidkit
liquidkit
 
 
sampleApp
sampleApp
 
 
scripts
scripts
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
THIRD_PARTY_NOTICES.md
THIRD_PARTY_NOTICES.md
 
 
build.gradle.kts
build.gradle.kts
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
renovate.json
renovate.json
 
 
settings.gradle.kts
settings.gradle.kts
 
 

Repository files navigation

LiquidGlass

LiquidGlass is a Kotlin Multiplatform component kit for Liquid Glass-style UI.

Android renders with the vendored AndroidLiquidGlass engine. iOS renders with native UIKit controls through Compose interop.

Maven/module coordinates still use liquidkit until a deliberate breaking rename is made.

io.github.androidpoet.liquidkit
io.github.androidpoet.liquidkit.navigation3 // optional

Components

  • LiquidToggle
  • LiquidSlider
  • LiquidSegmentedControl
  • LiquidBottomNavigation
  • LiquidTabScaffold
  • LiquidNav3TabScaffold from the optional Navigation 3 module

Controls

LiquidToggle(
    checked = enabled,
    onCheckedChange = { enabled = it },
)

LiquidSlider(
    value = intensity,
    onValueChange = { intensity = it },
    style = liquidGlassStyle(
        containerColor = Color.White.copy(alpha = 0.24f),
        selectedContentColor = Color(0xFF111820),
    ),
)

LiquidSegmentedControl(
    segments = segments,
    selectedKey = selectedSegment,
    onSelected = { selectedSegment = it },
)

Bottom Navigation

val items = listOf(
    LiquidNavigationItem("home", "Home", LiquidIcon(Icons.Rounded.Home)),
    LiquidNavigationItem("search", "Search", LiquidIcon(Icons.Rounded.Search)),
    LiquidNavigationItem("settings", "Settings", LiquidIcon(Icons.Rounded.Settings)),
)

LiquidBottomNavigation(
    items = items,
    selectedKey = currentTab,
    onSelected = { currentTab = it },
)

Use LiquidTabScaffold when LiquidGlass should hold the selected tab:

LiquidTabScaffold(items = items) { selectedTab ->
    when (selectedTab) {
        "home" -> HomeScreen()
        "search" -> SearchScreen()
        "settings" -> SettingsScreen()
    }
}

Navigation 3

Use liquidkit-navigation3 only for Compose-owned bottom-navigation tab stacks. LiquidGlass handles the multiple back stacks; your app still owns NavDisplay.

val state = rememberLiquidNav3State(
    topLevelRoutes = listOf(HomeRoute, SearchRoute),
    savedStateConfiguration = nav3SavedStateConfiguration,
)

val navEntries = rememberLiquidNav3Entries(
    state = state,
    entryProvider = entries,
)

Box {
    NavDisplay(
        entries = navEntries,
        onBack = { state.pop() },
        modifier = Modifier.matchParentSize(),
    )

    LiquidBottomNavigation(
        items = items,
        selectedKey = state.selectedTopLevelRoute,
        onSelected = state::selectTopLevel,
    )
}

For the common case, use the ready-made scaffold:

LiquidNav3TabScaffold(
    items = items,
    savedStateConfiguration = nav3SavedStateConfiguration,
    entryProvider = entries,
)

For native iOS 26 Liquid Glass tabs, keep TabView in SwiftUI and host Compose screens inside each tab.

Build

./gradlew :liquidkit:check :liquidkit-navigation3:check

Run the Android sample:

./gradlew :sampleApp:installDebug

Open the iOS sample:

iosApp/LiquidKitSample.xcodeproj

Credits

LiquidGlass's Android renderer includes source from Kyant0/AndroidLiquidGlass.

The optional Navigation 3 helper is adapted from the multiple-back-stack pattern in terrakok/nav3-recipes.

See THIRD_PARTY_NOTICES.md.

About

No description, website, or topics provided.

Resources

Readme
License

Code of conduct

Code of conduct

Contributing

Contributing
Activity

Stars

0 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Sponsor this project

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.