Skip to content

Commit

Permalink
Renamed IosNodeHost
Browse files Browse the repository at this point in the history
  • Loading branch information
aashay-gaikwad committed Sep 21, 2023
1 parent feb64bd commit 98137ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.bumble.appyx.navigation.integration.NodeFactory
import com.bumble.appyx.navigation.integration.NodeHost
import com.bumble.appyx.navigation.integration.ScreenSize
import com.bumble.appyx.navigation.integrationpoint.IntegrationPoint
import com.bumble.appyx.navigation.node.Node
import com.bumble.appyx.navigation.platform.LocalOnBackPressedDispatcherOwner
Expand All @@ -24,7 +21,7 @@ import kotlinx.coroutines.launch
import platform.UIKit.UIScreen

@Composable
fun <N : Node> IOSNodeHost(
fun <N : Node> IosNodeHost(
modifier: Modifier = Modifier,
onBackPressedEvents: Flow<Unit>,
integrationPoint: IntegrationPoint = remember { MainIntegrationPoint() },
Expand Down
4 changes: 2 additions & 2 deletions demos/appyx-navigation/ios/src/iosMain/kotlin/main.ios.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.ComposeUIViewController
import androidx.compose.ui.zIndex
import com.bumble.appyx.navigation.integration.IOSNodeHost
import com.bumble.appyx.navigation.integration.IosNodeHost
import com.bumble.appyx.navigation.node.container.ContainerNode
import com.bumble.appyx.navigation.ui.AppyxSampleAppTheme
import kotlinx.coroutines.CoroutineScope
Expand All @@ -36,7 +36,7 @@ fun MainViewController() = ComposeUIViewController {
BackButton(coroutineScope)

Box(modifier = Modifier.fillMaxSize()) {
IOSNodeHost(
IosNodeHost(
modifier = Modifier,
onBackPressedEvents = backEvents.receiveAsFlow()
) { buildContext ->
Expand Down

0 comments on commit 98137ed

Please sign in to comment.