Breaking:
- Treehouse hosts running Redwood 0.11.0 or older are not longer actively supported. They will continue to work, but they will experience indefinite memory leaks of native widgets.
- Old, deprecated overloads of
ZiplineTreehouseUi.start
have been removed. The new overloads have been available since Redwood 0.8.0 for over a year.
New:
UIConfiguration.viewInsets
tracks the safe area of the specificRedwoodView
being targeted. This is currently implemented for views on Android and UIViews on iOS.ConsumeInsets {}
composable consumes insets. Most applications should call this in their root composable function.- Add
TestRedwoodComposition.setContentAndSnapshot
function which is a fused version ofsetContent
andawaitSnapshot
, except that it guarantees the returned snapshot is the result of the initial composition of the content without any additional frames sent.
Fixed:
- Fix inconsistency in margin application between
ComposeUiBox
andViewBox
. - Add support for the Height modifier in
ComposeUiBox
. - Add support for the Width modifier in
ComposeUiBox
. - Call
DisposableEffect
when a screen is unbound. We were only calling these when the effect was removed from the composition. - Support
movableContentOf
in Treehouse (and generally in the Redwood protocol). Note: this requires the host be running version 0.17.0 or newer. - Fix case where
Column
andRow
would not update their intrinsic size on iOS if they are not a child of anotherColumn
orRow
.