Skip to content

Fix usage of runtime experimental annotation #2031

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -19,7 +19,6 @@ package androidx.compose.ui.scene
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionContext
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.ExperimentalComposeApi
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
@@ -91,7 +90,7 @@ import platform.UIKit.UIWindow
import platform.darwin.dispatch_async
import platform.darwin.dispatch_get_main_queue

@OptIn(BetaInteropApi::class, ExperimentalComposeApi::class)
@OptIn(BetaInteropApi::class)
@ExportObjCClass
internal class ComposeHostingViewController(
private val configuration: ComposeUIViewControllerConfiguration,
Original file line number Diff line number Diff line change
@@ -16,7 +16,6 @@

package androidx.compose.ui.uikit

import androidx.compose.runtime.ExperimentalComposeApi
import androidx.compose.ui.ExperimentalComposeUiApi
import platform.UIKit.UIStatusBarAnimation
import platform.UIKit.UIStatusBarStyle
@@ -47,7 +46,7 @@ class ComposeUIViewControllerConfiguration {
* Determines whether the Compose view should have an opaque background.
* Warning: disabling opaque layer may affect performance.
*/
@ExperimentalComposeApi
@ExperimentalComposeUiApi
var opaque: Boolean = true

/**
@@ -72,7 +71,7 @@ class ComposeUIViewControllerConfiguration {
/**
* A flag to enable or disable iOS BackGesture recognizer.
*/
@ExperimentalComposeApi
@ExperimentalComposeUiApi
var enableBackGesture: Boolean = true
}