From ddf1919a016ce4e7b2f697ecffbb8179d6d8cbc5 Mon Sep 17 00:00:00 2001 From: Oleksandr Karpovich Date: Mon, 6 Feb 2023 11:31:06 +0100 Subject: [PATCH] Update imageviewer to not use `internal` visibility for composable functions --- experimental/examples/imageviewer/.gitignore | 1 + .../examples/imageviewer/iosApp/Podfile | 4 +- .../iosApp/iosApp.xcodeproj/project.pbxproj | 22 +---------- .../imageviewer/iosApp/iosApp/iosApp.swift | 2 +- .../imageviewer/iosAppKt/build.gradle.kts | 39 +++++++++++++++++++ .../kotlin/example.imageviewer}/main.ios.kt | 0 .../examples/imageviewer/settings.gradle.kts | 1 + .../imageviewer/shared/build.gradle.kts | 13 ------- .../example/imageviewer/ImageViewer.common.kt | 2 +- .../example/imageviewer/style/Palette.kt | 2 +- .../imageviewer/view/FullscreenImage.kt | 2 +- .../example/imageviewer/view/LoadingScreen.kt | 2 +- .../example/imageviewer/view/MainScreen.kt | 2 +- .../example/imageviewer/view/Miniature.kt | 2 +- .../imageviewer/view/PreviewImage.common.kt | 4 +- .../view/ScrollableColumn.common.kt | 4 +- .../kotlin/example/imageviewer/view/Toast.kt | 2 +- .../imageviewer/view/Tooltip.common.kt | 2 +- .../imageviewer/view/PreviewImage.desktop.kt | 2 +- .../view/ScrollableColumn.desktop.kt | 2 +- .../imageviewer/view/Tooltip.desktop.kt | 2 +- .../example/imageviewer/ImageViewer.ios.kt | 2 +- .../imageviewer/view/PreviewImage.ios.kt | 2 +- .../imageviewer/view/ScrollableColumn.ios.kt | 2 +- .../example/imageviewer/view/Tooltip.ios.kt | 2 +- 25 files changed, 65 insertions(+), 55 deletions(-) create mode 100755 experimental/examples/imageviewer/iosAppKt/build.gradle.kts rename experimental/examples/imageviewer/{shared/src/iosMain/kotlin/example/imageviewer => iosAppKt/src/iosMain/kotlin/example.imageviewer}/main.ios.kt (100%) diff --git a/experimental/examples/imageviewer/.gitignore b/experimental/examples/imageviewer/.gitignore index d27dff7cb0..ede4706c96 100644 --- a/experimental/examples/imageviewer/.gitignore +++ b/experimental/examples/imageviewer/.gitignore @@ -19,3 +19,4 @@ iosApp/iosApp.xcworkspace/* iosApp/iosApp.xcodeproj/* !iosApp/iosApp.xcodeproj/project.pbxproj shared/shared.podspec +iosAppKt/iosAppKt.podspec diff --git a/experimental/examples/imageviewer/iosApp/Podfile b/experimental/examples/imageviewer/iosApp/Podfile index aff9c517b2..4c3ec9ded6 100644 --- a/experimental/examples/imageviewer/iosApp/Podfile +++ b/experimental/examples/imageviewer/iosApp/Podfile @@ -1,5 +1,5 @@ target 'iosApp' do use_frameworks! platform :ios, '14.1' - pod 'shared', :path => '../shared' -end \ No newline at end of file + pod 'iosAppKt', :path => '../iosAppKt' +end diff --git a/experimental/examples/imageviewer/iosApp/iosApp.xcodeproj/project.pbxproj b/experimental/examples/imageviewer/iosApp/iosApp.xcodeproj/project.pbxproj index 2d52838b5e..48026b05b6 100644 --- a/experimental/examples/imageviewer/iosApp/iosApp.xcodeproj/project.pbxproj +++ b/experimental/examples/imageviewer/iosApp/iosApp.xcodeproj/project.pbxproj @@ -97,7 +97,6 @@ 7555FF77242A565900829871 /* Sources */, 7555FF79242A565900829871 /* Resources */, 9964867F0862B4D9FB6ABFC7 /* Frameworks */, - F34398AEB6C0D136D245A061 /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -174,23 +173,6 @@ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; - F34398AEB6C0D136D245A061 /* [CP] Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-iosApp/Pods-iosApp-resources-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Copy Pods Resources"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-iosApp/Pods-iosApp-resources-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-iosApp/Pods-iosApp-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -340,7 +322,7 @@ "@executable_path/Frameworks", ); PRODUCT_BUNDLE_IDENTIFIER = "org.jetbrains.Imageviewer${TEAM_ID}"; - PRODUCT_NAME = "Imageviewer"; + PRODUCT_NAME = Imageviewer; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -364,7 +346,7 @@ "@executable_path/Frameworks", ); PRODUCT_BUNDLE_IDENTIFIER = "org.jetbrains.Imageviewer${TEAM_ID}"; - PRODUCT_NAME = "Imageviewer"; + PRODUCT_NAME = Imageviewer; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; diff --git a/experimental/examples/imageviewer/iosApp/iosApp/iosApp.swift b/experimental/examples/imageviewer/iosApp/iosApp/iosApp.swift index b42016a6fc..5be61420ca 100644 --- a/experimental/examples/imageviewer/iosApp/iosApp/iosApp.swift +++ b/experimental/examples/imageviewer/iosApp/iosApp/iosApp.swift @@ -1,5 +1,5 @@ import UIKit -import shared +import iosAppKt @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { diff --git a/experimental/examples/imageviewer/iosAppKt/build.gradle.kts b/experimental/examples/imageviewer/iosAppKt/build.gradle.kts new file mode 100755 index 0000000000..6d2bc56c45 --- /dev/null +++ b/experimental/examples/imageviewer/iosAppKt/build.gradle.kts @@ -0,0 +1,39 @@ +plugins { + kotlin("multiplatform") + kotlin("native.cocoapods") + id("org.jetbrains.compose") +} + +version = "1.0-SNAPSHOT" +val ktorVersion = extra["ktor.version"] + +kotlin { + ios() + iosSimulatorArm64() + + cocoapods { + summary = "Shared code for the sample" + homepage = "https://github.com/JetBrains/compose-jb" + ios.deploymentTarget = "14.1" + podfile = project.file("../iosApp/Podfile") + framework { + baseName = "iosAppKt" + isStatic = true + } + extraSpecAttributes["resources"] = "['src/commonMain/resources/**', 'src/iosMain/resources/**']" + } + + sourceSets { + val commonMain by getting { + dependencies { + implementation("io.ktor:ktor-client-core:$ktorVersion") + implementation(compose.runtime) + implementation(compose.foundation) + implementation(compose.material) + implementation("org.jetbrains.compose.components:components-resources:1.3.0-beta04-dev879") + implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1") + implementation(project(":shared")) + } + } + } +} diff --git a/experimental/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/main.ios.kt b/experimental/examples/imageviewer/iosAppKt/src/iosMain/kotlin/example.imageviewer/main.ios.kt similarity index 100% rename from experimental/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/main.ios.kt rename to experimental/examples/imageviewer/iosAppKt/src/iosMain/kotlin/example.imageviewer/main.ios.kt diff --git a/experimental/examples/imageviewer/settings.gradle.kts b/experimental/examples/imageviewer/settings.gradle.kts index a2c5064a25..e162f486aa 100644 --- a/experimental/examples/imageviewer/settings.gradle.kts +++ b/experimental/examples/imageviewer/settings.gradle.kts @@ -26,3 +26,4 @@ rootProject.name = "imageviewer" include(":androidApp") include(":shared") include(":desktopApp") +include(":iosAppKt") diff --git a/experimental/examples/imageviewer/shared/build.gradle.kts b/experimental/examples/imageviewer/shared/build.gradle.kts index 9d7a377757..c950f3535c 100755 --- a/experimental/examples/imageviewer/shared/build.gradle.kts +++ b/experimental/examples/imageviewer/shared/build.gradle.kts @@ -1,6 +1,5 @@ plugins { kotlin("multiplatform") - kotlin("native.cocoapods") id("com.android.library") id("org.jetbrains.compose") kotlin("plugin.serialization") @@ -15,18 +14,6 @@ kotlin { ios() iosSimulatorArm64() - cocoapods { - summary = "Shared code for the sample" - homepage = "https://github.com/JetBrains/compose-jb" - ios.deploymentTarget = "14.1" - podfile = project.file("../iosApp/Podfile") - framework { - baseName = "shared" - isStatic = true - } - extraSpecAttributes["resources"] = "['src/commonMain/resources/**', 'src/iosMain/resources/**']" - } - sourceSets { val commonMain by getting { dependencies { diff --git a/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/ImageViewer.common.kt b/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/ImageViewer.common.kt index 292836ead9..fc26339aaf 100644 --- a/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/ImageViewer.common.kt +++ b/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/ImageViewer.common.kt @@ -10,7 +10,7 @@ import example.imageviewer.view.FullscreenImage import example.imageviewer.view.MainScreen @Composable -internal fun ImageViewerCommon(state: MutableState, dependencies: Dependencies) { +fun ImageViewerCommon(state: MutableState, dependencies: Dependencies) { state.refresh(dependencies) Surface(modifier = Modifier.fillMaxSize()) { diff --git a/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/style/Palette.kt b/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/style/Palette.kt index b63fafac57..0f4ed07820 100755 --- a/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/style/Palette.kt +++ b/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/style/Palette.kt @@ -22,7 +22,7 @@ object ImageviewerColors { } @Composable -internal fun ImageViewerTheme(content: @Composable () -> Unit) { +fun ImageViewerTheme(content: @Composable () -> Unit) { isSystemInDarkTheme() // todo check and change colors MaterialTheme( colors = MaterialTheme.colors.copy( diff --git a/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/FullscreenImage.kt b/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/FullscreenImage.kt index 4675c84a21..b9365c4d9b 100644 --- a/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/FullscreenImage.kt +++ b/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/FullscreenImage.kt @@ -32,7 +32,7 @@ import org.jetbrains.compose.resources.rememberImageBitmap import org.jetbrains.compose.resources.resource @Composable -internal fun FullscreenImage( +fun FullscreenImage( picture: Picture?, getImage: suspend (Picture) -> ImageBitmap, getFilter: (FilterType) -> BitmapFilter, diff --git a/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/LoadingScreen.kt b/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/LoadingScreen.kt index f97df4b357..85ace891a6 100644 --- a/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/LoadingScreen.kt +++ b/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/LoadingScreen.kt @@ -13,7 +13,7 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.unit.dp @Composable -internal fun LoadingScreen(text: String = "") { +fun LoadingScreen(text: String = "") { Box( modifier = Modifier.fillMaxSize().background(color = MaterialTheme.colors.background) ) { diff --git a/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/MainScreen.kt b/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/MainScreen.kt index 97763df099..1237b6e08e 100755 --- a/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/MainScreen.kt +++ b/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/MainScreen.kt @@ -18,7 +18,7 @@ import org.jetbrains.compose.resources.rememberImageBitmap import org.jetbrains.compose.resources.resource @Composable -internal fun MainScreen(state: MutableState, dependencies: Dependencies) { +fun MainScreen(state: MutableState, dependencies: Dependencies) { Column { TopContent(state, dependencies) ScrollableColumn( diff --git a/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/Miniature.kt b/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/Miniature.kt index 1e725cd8b0..3adc02f9c3 100644 --- a/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/Miniature.kt +++ b/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/Miniature.kt @@ -20,7 +20,7 @@ import org.jetbrains.compose.resources.resource @OptIn(ExperimentalResourceApi::class) @Composable -internal fun Miniature( +fun Miniature( picture: Picture, image: ImageBitmap?, onClickSelect: () -> Unit, diff --git a/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/PreviewImage.common.kt b/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/PreviewImage.common.kt index 85ebb73cc0..98e4130d71 100644 --- a/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/PreviewImage.common.kt +++ b/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/PreviewImage.common.kt @@ -20,7 +20,7 @@ import org.jetbrains.compose.resources.resource @OptIn(ExperimentalResourceApi::class) @Composable -internal fun PreviewImage(state: MutableState, getImage: suspend (Picture) -> ImageBitmap) { +fun PreviewImage(state: MutableState, getImage: suspend (Picture) -> ImageBitmap) { val pictures = state.value.pictures val index = state.value.currentImageIndex val imageState = remember(pictures, index) { mutableStateOf(null) } @@ -50,4 +50,4 @@ internal fun PreviewImage(state: MutableState, getImage: suspend (Picture } @Composable -internal expect fun needShowPreview(): Boolean +expect fun needShowPreview(): Boolean diff --git a/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/ScrollableColumn.common.kt b/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/ScrollableColumn.common.kt index a6770df26b..58efdf94f5 100644 --- a/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/ScrollableColumn.common.kt +++ b/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/ScrollableColumn.common.kt @@ -7,10 +7,10 @@ import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier @Composable -internal expect fun ScrollableColumn(modifier: Modifier, content: @Composable () -> Unit) +expect fun ScrollableColumn(modifier: Modifier, content: @Composable () -> Unit) @Composable -internal fun TouchScrollableColumn(modifier: Modifier, content: @Composable () -> Unit) { +fun TouchScrollableColumn(modifier: Modifier, content: @Composable () -> Unit) { val scrollState = rememberScrollState() Column(modifier.verticalScroll(scrollState)) { content() diff --git a/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/Toast.kt b/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/Toast.kt index 6db9603f25..0a13af1f18 100755 --- a/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/Toast.kt +++ b/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/Toast.kt @@ -23,7 +23,7 @@ sealed interface ToastState { } @Composable -internal fun Toast( +fun Toast( state: MutableState ) { val value = state.value diff --git a/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/Tooltip.common.kt b/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/Tooltip.common.kt index e1fa2f7496..e12adf56f5 100644 --- a/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/Tooltip.common.kt +++ b/experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/Tooltip.common.kt @@ -3,7 +3,7 @@ package example.imageviewer.view import androidx.compose.runtime.Composable @Composable -internal expect fun Tooltip( +expect fun Tooltip( text: String, content: @Composable () -> Unit ) diff --git a/experimental/examples/imageviewer/shared/src/desktopMain/kotlin/example/imageviewer/view/PreviewImage.desktop.kt b/experimental/examples/imageviewer/shared/src/desktopMain/kotlin/example/imageviewer/view/PreviewImage.desktop.kt index 1003194719..1f3e74f42f 100644 --- a/experimental/examples/imageviewer/shared/src/desktopMain/kotlin/example/imageviewer/view/PreviewImage.desktop.kt +++ b/experimental/examples/imageviewer/shared/src/desktopMain/kotlin/example/imageviewer/view/PreviewImage.desktop.kt @@ -3,4 +3,4 @@ package example.imageviewer.view import androidx.compose.runtime.Composable @Composable -internal actual fun needShowPreview(): Boolean = true +actual fun needShowPreview(): Boolean = true diff --git a/experimental/examples/imageviewer/shared/src/desktopMain/kotlin/example/imageviewer/view/ScrollableColumn.desktop.kt b/experimental/examples/imageviewer/shared/src/desktopMain/kotlin/example/imageviewer/view/ScrollableColumn.desktop.kt index d3a7f7961a..48d18135c4 100644 --- a/experimental/examples/imageviewer/shared/src/desktopMain/kotlin/example/imageviewer/view/ScrollableColumn.desktop.kt +++ b/experimental/examples/imageviewer/shared/src/desktopMain/kotlin/example/imageviewer/view/ScrollableColumn.desktop.kt @@ -11,7 +11,7 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.unit.dp @Composable -internal actual fun ScrollableColumn(modifier: Modifier, content: @Composable () -> Unit) { +actual fun ScrollableColumn(modifier: Modifier, content: @Composable () -> Unit) { val scrollState = rememberScrollState() Modifier.verticalScroll(scrollState) diff --git a/experimental/examples/imageviewer/shared/src/desktopMain/kotlin/example/imageviewer/view/Tooltip.desktop.kt b/experimental/examples/imageviewer/shared/src/desktopMain/kotlin/example/imageviewer/view/Tooltip.desktop.kt index 5848946793..2c9c31e26a 100644 --- a/experimental/examples/imageviewer/shared/src/desktopMain/kotlin/example/imageviewer/view/Tooltip.desktop.kt +++ b/experimental/examples/imageviewer/shared/src/desktopMain/kotlin/example/imageviewer/view/Tooltip.desktop.kt @@ -14,7 +14,7 @@ import androidx.compose.ui.unit.dp @OptIn(ExperimentalFoundationApi::class) @Composable -internal actual fun Tooltip( +actual fun Tooltip( text: String, content: @Composable () -> Unit ) { diff --git a/experimental/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/ImageViewer.ios.kt b/experimental/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/ImageViewer.ios.kt index 2f0eb17ab2..4a59b0f387 100755 --- a/experimental/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/ImageViewer.ios.kt +++ b/experimental/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/ImageViewer.ios.kt @@ -23,7 +23,7 @@ import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers @Composable -internal fun ImageViewerIos() { +fun ImageViewerIos() { val toastState = remember { mutableStateOf(ToastState.Hidden) } val state = remember { mutableStateOf(State()) } val ioScope: CoroutineScope = rememberCoroutineScope { Dispatchers.Default } diff --git a/experimental/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/view/PreviewImage.ios.kt b/experimental/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/view/PreviewImage.ios.kt index 1003194719..1f3e74f42f 100644 --- a/experimental/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/view/PreviewImage.ios.kt +++ b/experimental/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/view/PreviewImage.ios.kt @@ -3,4 +3,4 @@ package example.imageviewer.view import androidx.compose.runtime.Composable @Composable -internal actual fun needShowPreview(): Boolean = true +actual fun needShowPreview(): Boolean = true diff --git a/experimental/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/view/ScrollableColumn.ios.kt b/experimental/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/view/ScrollableColumn.ios.kt index ec357481e5..7ef544a39d 100644 --- a/experimental/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/view/ScrollableColumn.ios.kt +++ b/experimental/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/view/ScrollableColumn.ios.kt @@ -4,5 +4,5 @@ import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier @Composable -internal actual fun ScrollableColumn(modifier: Modifier, content: @Composable () -> Unit) = +actual fun ScrollableColumn(modifier: Modifier, content: @Composable () -> Unit) = TouchScrollableColumn(modifier, content) diff --git a/experimental/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/view/Tooltip.ios.kt b/experimental/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/view/Tooltip.ios.kt index 3806b15180..39ac9d6c75 100644 --- a/experimental/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/view/Tooltip.ios.kt +++ b/experimental/examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/view/Tooltip.ios.kt @@ -3,7 +3,7 @@ package example.imageviewer.view import androidx.compose.runtime.Composable @Composable -internal actual fun Tooltip( +actual fun Tooltip( text: String, content: @Composable () -> Unit ) {