Skip to content

0.40.0

Latest

Choose a tag to compare

@stagg stagg released this 03 Dec 04:16
· 12 commits to main since this release
0.40.0
741b978

Adaptive pane layouts with circuitx-adaptive

circuitx-adaptive is a new experimental artifact that shows one back stack as one, two, or three panes. A phone shows one screen at a time. This helps ease targeting different form factors like tablets, foldables, or desktop layouts.

data class DetailScreen(val id: String) : PaneScreen {
  override val paneStyle = PaneStyle.ListDetail
}

val (paneNavigator, decoration) = rememberPaneNavigation(navigator)
NavigableCircuitContent(paneNavigator, backStack, decoration = decoration)

On a wide window, DetailScreen now opens beside the screen below it. Opening another detail replaces the first one, so back returns to the list.

See the docs.

New

  • circuit-foundation: Add experimental RecordLifecycle.isVisible and a ProvideRecordLifecycle(isActive, isVisible) overload, so a decoration can report whether a record is shown separately from whether it's active.
  • circuitx-gesture-navigation: Add SlideOverNavDecoration, an iOS-style slide-over NavDecoration with forward and backward swipes and optional off-screen warming of adjacent screens.
  • circuitx-navigation: Add InterceptedResult.RewriteAll, which rewrites a navigation into several NavEvents that InterceptingNavigator applies in one snapshot.
  • circuit-sharedelements: Add ProvideStaticAnimatedTransitionScope, which provides an AnimatedScope to content that renders outside the transition that normally provides it.

Fixed

  • circuit-foundation: A record in a nested NavigableCircuitContent is now only active (LocalRecordLifecycle.isActive) while its parent record is active, unless a NavDecoration provides its own lifecycle.
  • circuit-serialization-reflect: Compile an Android variant against Android SavedState to avoid a NoSuchMethodError when saving screens.

Contributors

Special thanks to the following contributors for contributing to this release!

What's Changed

New Contributors

Full Changelog: 0.39.0...0.40.0