8000
Skip to content

AdaptiveNavigationBar on iOS - bottom bar is visible when navigating away, and during back navigation gestures #530

Description

@raudonikis

Description

  1. The BottomNavigationBar disappears only after a delay, when navigating to a screen without a bottom bar.
  2. When navigating back from a screen without the bottom navigation bar, -> it becomes visible immediately, even if the gesture is not completed yet.

Only on iOS. Issue is not present when using material scaffold and navigation bar.

Usecase example: logout functionality from within a menu tab.

# Navigation
NavDisplay(
    backStack = backstack,
    entryProvider = entryProvider {
         entry<Route.Tabs> {
             TabsScreen(onButtonClick = { backstack.add(Route.Example) })
         }
         entry<Route.Example> {
              ExampleScreen()
          }
    }
)

# Screen with bottom navigation
@Composable
private fun TabsScreen() {
    AdaptiveScaffold(
        bottomBar = {
            AdaptiveNavigationBar(
                iosSelectedIndex = 0,
                iosItems = listOf(
                    UIKitUITabBarItem(title = "Tab 1"),
                    UIKitUITabBarItem(title = "Tab 2"),
                ),
                iosOnItemSelected = {},
            ) {
                NavigationBar { ... }
            }
        },
    ) {
        ...
    }
}

# Screen without navigation bar
@Composable
private fun ExampleScreen() {
    AdaptiveScaffold {
        Box(contentAlignment = Alignment.Center, modifier = Modifier.fillMaxSize()) {
            Text("Example Screen")
        }
    }
}

Environment

Compose Multiplatform project with Android/iOS targets.

# libs.versions.toml
agp = "9.0.1"
composeMultiplatform = "1.11.1"
kotlin = "2.4.0"
calf = "0.12.0"
compose-navigation3 = "1.1.1"

Screen recording

ScreenRecording_06-08-2026.18-28-10_1.MP4

Reproducible sample project

https://github.com/raudonikis/Example-CMP-project

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0