https://kotlinlang.org logo
#compose
Title
# compose
r

rook

08/22/2022, 6:26 PM
Weird thing I noticed: I can’t import both
LazyListScope.items
and
LazyGridScope.items
. I’m not sure if that’s intentional or if I’m meant to alias them somehow.
i

Ian Lake

08/22/2022, 6:28 PM
FWIW, Kotlin supports import aliases by using the
as
keyword: https://kotlinlang.org/docs/packages.html#imports
r

rook

08/22/2022, 6:29 PM
There’s just no way for me to distinguish them from an import perspective since they have the same signature and top-level functions are not distinguished by receiver
i

Ian Lake

08/22/2022, 6:30 PM
one is
androidx.compose.foundation.lazy
and one is in
androidx.compose.foundation.lazy.grid
, are they not?
r

rook

08/22/2022, 6:31 PM
They’re both in
.lazy
What version are you using?
r

rook

08/22/2022, 6:32 PM
1.1.1
haven’t bumped the version yet since it requires a kotlin version bump that we haven’t validated for our project
i

Ian Lake

08/22/2022, 6:33 PM
Yeah, those APIs became stable and moved to the
.grid
folder in Compose 1.2
r

rook

08/22/2022, 6:34 PM
gotcha, I’ll try for an upgrade then to solve the problem
3 Views