Hey, how can I access displayMetrics in compose to...
# compose
s
Hey, how can I access displayMetrics in compose to get the screen density?
m
Check Wrapper.kt in ui-core that contains all the ambients provided by default. There is a Context ambient and a Density one
s
👍 thank you!
👍 1
k
val density = DensityAmbient.current
👍 1