With jetpack compose, how do we access things like...
# compose
a
With jetpack compose, how do we access things like view insets, context, etc?
a
Looking at the tutorial, it looks like you can get a reference to
Context
like so:
val context = +ambient(ContextAmbient)
a
Ah, that’s kinda neat
a
We still need to wire up some more things to the host view to make working with the insets nicer
a
I suppose that would need to be added into the AndroidComposeView itself, maybe with a similar api to how you’d access context
a
Kind of, though I'd like to consider the whole insets situation a little more thoroughly too and look at improving that API UX along the way