Are we able provide `WindowInsets` via a `Composit...
# compose
x
Are we able provide
WindowInsets
via a
CompositionLocal
?
c
Technically yes since you can create your own CompositionLocals
x
we wouldn't be able to provide and override these for
TopAppBar
or
BottomAppBar
, right?
c
Well given windowInsets is a parameter, yes you can override the defaults
What are you trying to achieve?
x
trying to add custom insets for the ios client, and have not affect how the insets are calculated for other platforms. But looks like window insets are consumed once and propagated down to children which seem to work out well for my usecase
c
Gotcha. Unfortunately I’m not as familiar with how WindowInsets are calculated and passed to a Compose hierarchy in iOS, but conceptually how to apply them should be consistent with how it works in Android.