New
0.17.0
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.starthave been removed. The new overloads have been available since Redwood 0.8.0 for over a year.
New:
UIConfiguration.viewInsetstracks the safe area of the specificRedwoodViewbeing 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.setContentAndSnapshotfunction which is a fused version ofsetContentandawaitSnapshot, 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
ComposeUiBoxandViewBox. - Add support for the Height modifier in
ComposeUiBox. - Add support for the Width modifier in
ComposeUiBox. - Call
DisposableEffectwhen a screen is unbound. We were only calling these when the effect was removed from the composition. - Support
movableContentOfin Treehouse (and generally in the Redwood protocol). Note: this requires the host be running version 0.17.0 or newer. - Fix case where
ColumnandRowwould not update their intrinsic size on iOS if they are not a child of anotherColumnorRow.