Hey Guys! I'm getting this error on switching the ...
# multiplatform
m
Hey Guys! I'm getting this error on switching the Composables by clicking on BottomNav Exception:
Uncaught Kotlin exception: kotlin.ConcurrentModificationException
Code
Copy code
Scaffold(
    bottomBar = {
        BottomNavigation {
            with(screens.iterator()) {
                forEach { screen ->
                    BottomNavigationItem(
                        icon = { Icon(getIconForScreen(screen), contentDescription = screen) },
                        label = { Text(screen) },
                        selected = screen == selectedScreen,
                        onClick = { selectedScreen = screen },
                        modifier = Modifier.padding(8.dp)
                    )
                }
            }
        }
    },
    content = {
        if (selectedScreen== "Home") NewsScreen() else SavedNewsScreen()
    }
)
When I click on SavedNewsScreen() it gives this exception. And this exception is coming only on iOS.
Resolved above error by upgrading voyager lib from "1.0.0-rc08" to "1.0.0-rc10" 🌟
âž• 1
🦜 1