Skip to content

Commit

Permalink
feat: added extension function Content
Browse files Browse the repository at this point in the history
  • Loading branch information
y9san9 committed May 4, 2024
1 parent e6a1fd5 commit 9082fdc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ androidx-lifecycle = "2.7.0"
ktgbotapi = "11.0.0"
mdi = "0.0.38"

ksm = "0.0.31"
ksm = "0.0.32"

[libraries]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ public fun interface ComposeContent {
@Composable
public fun StateController.Content()
}

@Composable
public fun ComposeContent.Content(controller: StateController) {
with (controller) { Content() }
}

0 comments on commit 9082fdc

Please sign in to comment.