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

spierce7

02/12/2021, 12:00 AM
If I wanted to rotate an entire screen 90 degrees, and set the width to the screen height, and the height to the screen width (this is for a vertical screen on apple tv, and the landscape to portrait rotation doesn’t do what’s expected), what would be the best way to do that with compose, since I don’t have the rendered width and height when declaring size in compose?
Thank you for the suggestion. I will try this approach tonight and let you know if I get it working.
👍 1
Got it working in very little time. Created a small gist - https://gist.github.com/ScottPierce/2bd2624305c89cd8d3da3deb845044c3
👍 3
4 Views