Are there any built-ins to get a preview in landscape mode, or do you need to set the height and width manually?
russhwolf
07/01/2021, 11:05 PM
(Setting height and width manually is not great if you also want
showSystemUi = true
)
c
Chris Sinco [G]
07/02/2021, 12:06 AM
It’s manual at the moment but we are looking to add an orientation parameter in Bumblebee. @Preview is in its own library, so it may be able to work in Arctic Fox. Stay tuned.
👍 2
r
russhwolf
07/02/2021, 3:21 AM
Thanks! Is there a ticket I can watch for that?
c
Chris Sinco [G]
07/02/2021, 6:28 PM
We don’t have one, but we expect to add it soon
👍 1
r
russhwolf
07/02/2021, 6:42 PM
Ok thanks. This is probably obvious, but ideally it would toggle
LocalConfiguration.current.orientation
in addition to swapping the width and height of the device presets, because there doesn't seem to be a way to toggle that in previews currently.
c
Chris Sinco [G]
07/02/2021, 6:53 PM
Yep that is what we are looking to, to actually change configuration, not just screen size