Skip to content

Commit d6d5bf0

Browse files
committed
Allow direct access to composition local SceneSection
It can be useful to separate shared transitions which should only be shared within a section. Like the title itself, for example.
1 parent 774e79d commit d6d5bf0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • storyboard-easel/src/commonMain/kotlin/dev/bnorm/storyboard/easel

storyboard-easel/src/commonMain/kotlin/dev/bnorm/storyboard/easel/SceneSection.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ class SceneSection(
1919
title = {},
2020
)
2121

22+
val current: SceneSection
23+
@Composable
24+
get() = LocalSceneSection.current
25+
2226
val title: @Composable () -> Unit
2327
@Composable
2428
get() = LocalSceneSection.current.title

0 commit comments

Comments
 (0)