I need my fully transparent system bars to show by swiping and then hide. Now it is hidden when the app starts
.
But after swiping it doesn't hide.
If I use
val activity = LocalContext.current as Activity
with(WindowCompat.getInsetsController(activity.window, activity.window.decorView)) { systemBarsBehavior = WindowInsetsControllerCompat.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE }
the system bar will have a gray tint.
I need absolutely transparent bar without any shades... Please help!
The code
WindowCompat.setDecorFitsSystemWindows(window, false)
setContent {
Puzzle_QuestTheme {
Surface(
modifier = Modifier.fillMaxSize(),
color = MaterialTheme.colorScheme.background
) {
val systemUiController = rememberSystemUiController()
systemUiController.setStatusBarColor(color = Transparent)
systemUiController.setNavigationBarColor(color =Transparent,darkIcons = false)
systemUiController.isNavigationBarContrastEnforced = false
systemUiController.isNavigationBarVisible = false
systemUiController.isSystemBarsVisible = false
systemUiController.isStatusBarVisible = false
PuzzleQuestApp()
}
}
}


after setting systemBarsBehavior