Skip to content

Commit

Permalink
Enable incremental layouts by default (#2335)
Browse files Browse the repository at this point in the history
Next step is to remove the option.
  • Loading branch information
squarejesse authored Sep 26, 2024
1 parent 616e91c commit 3fe178c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Changed:
Fixed:
- Breaking the last remaining retain cycle in `UIViewLazyList`.
- Don't leak the `DisplayLink` when a `TreehouseApp` is stopped on iOS.
- Correctly handle dynamic size changes for child widgets of `Box`.
- Correctly handle dynamic size changes for child widgets of `Box`, `Column`, and `Row`.
- Correctly implement margins for `Box` on iOS.


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ abstract class AbstractFlexContainerTest<T : Any> {
* currently opt-in, but will soon be the only supported mode.
*/
open val incremental: Boolean
get() = false
get() = true

abstract val widgetFactory: TestWidgetFactory<T>

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import app.cash.redwood.yoga.FlexDirection

public class ViewRedwoodLayoutWidgetFactory(
private val context: Context,
private val incremental: Boolean = false,
private val incremental: Boolean = true,
) : RedwoodLayoutWidgetFactory<View> {
override fun Box(): Box<View> = ViewBox(context)

Expand Down

0 comments on commit 3fe178c

Please sign in to comment.