Skip to content

Commit

Permalink
Update CHANGELOG.md and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mapm14 committed Jan 21, 2024
1 parent 7df9251 commit 5caaf98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Please refer to [2.0.0-alpha10 – Migration guide](2.0.0-alpha10.md)
- [#652](https://github.com/bumble-tech/appyx/pull/652) - KSP processor renamed from `mutable-ui-processor` to `appyx-processor`
- [#654](https://github.com/bumble-tech/appyx/pull/654) - Renamings
- [#657](https://github.com/bumble-tech/appyx/pull/657) - Rename ParentNode & Node to Node and LeafNode
- [#660](https://github.com/bumble-tech/appyx/pull/660) - Make IosNodeHost to receive a Lifecycle class to fix iOS lifecycle problems

### Fixed

Expand Down
7 changes: 5 additions & 2 deletions documentation/navigation/multiplatform.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,18 @@ fun main() {

### iOS

For a complete example on how to pass a `LifecycleHelper` class to `MainViewController` please refer to our [multiplatform starter kit](https://github.com/bumble-tech/appyx-starter-kit/tree/a7331be581a6727597eab35744fe1bcd26f3fa87/iosApp/iosApp)

```kotlin
val backEvents: Channel<Unit> = Channel()

fun MainViewController() = ComposeUIViewController {
fun MainViewController(lifecycleHelper: LifecycleHelper) = ComposeUIViewController {
YourAppTheme {
IosNodeHost(
modifier = Modifier,
lifecycle = lifecycleHelper.lifecycle,
// See back handling section in the docs below!
onBackPressedEvents = backEvents.receiveAsFlow()
onBackPressedEvents = backEvents.receiveAsFlow(),
) {
RootNode(
nodeContext = it
Expand Down

0 comments on commit 5caaf98

Please sign in to comment.