mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
fix(folio): expect/actual testTagsAsResourceId so iOS link succeeds
Compose's androidx.compose.ui.semantics.testTagsAsResourceId is Android-only. Calling it directly from commonMain broke linkDebugFrameworkIosSimulatorArm64. Replace with an expect Modifier extension that wires the semantics on Android and is a no-op on iOS / wasmJs.
This commit is contained in:
1 parent
2f1633abdf
commit
2fb208bda9
4 files changed
+25
No files matched your search
+10
@@ -0,0 +1,10 @@
|
|||||||
|
package app.folio.ui
|
||||||
|
|
||||||
|
import androidx.compose.ui.ExperimentalComposeUiApi
|
||||||
|
import androidx.compose.ui.Modifier
|
||||||
|
import androidx.compose.ui.semantics.semantics
|
||||||
|
import androidx.compose.ui.semantics.testTagsAsResourceId
|
||||||
|
|
||||||
|
@OptIn(ExperimentalComposeUiApi::class)
|
||||||
|
actual fun Modifier.testTagsAsResourceId(): Modifier =
|
||||||
|
semantics { testTagsAsResourceId = true }
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package app.folio.ui
|
||||||
|
|
||||||
|
import androidx.compose.ui.Modifier
|
||||||
|
|
||||||
|
expect fun Modifier.testTagsAsResourceId(): Modifier
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package app.folio.ui
|
||||||
|
|
||||||
|
import androidx.compose.ui.Modifier
|
||||||
|
|
||||||
|
actual fun Modifier.testTagsAsResourceId(): Modifier = this
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package app.folio.ui
|
||||||
|
|
||||||
|
import androidx.compose.ui.Modifier
|
||||||
|
|
||||||
|
actual fun Modifier.testTagsAsResourceId(): Modifier = this
|
||||||
Reference in new issue
Block a user