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

John O'Reilly

01/13/2021, 5:58 PM
What's equivalent of SwiftUI's
GeometryReader
for getting the dimensions of the screen/window?
z

Zach Klippenstein (he/him) [MOD]

01/13/2021, 6:01 PM
Depending on your use case,
WithConstraints
might be what you’re looking for
Otherwise, you can get the
Context
and read the
DisplayMetrics
just like usual in android
j

John O'Reilly

01/13/2021, 6:02 PM
thanks @Zach Klippenstein (he/him) [MOD], will try that
That did the job, thanks!
17 Views