I'm trying to use DropdownMenu and DropdownMenuIte...
# compose-ios
t
I'm trying to use DropdownMenu and DropdownMenuItem, but it fails in compileKotlinIosArm64. Is there a fix for this? The composable function is in my commonMain.
👍 1
1
t
What version of compose are you using? You have to be aware of when the component was added and whether it is in material or material3. I suggest using 1.5.0-beta2 - it is the most complete and has material3 1.1.1 included. See here for a nice way to see whan components were added: https://www.composables.com/components/material/dropdownmenu
t
Awesome! That helps a lot. Thank you
How does the gradle plugin map to these releases? If I want to use the 1.5.0-beta2 as suggested, which version of the compose gradle plugin would it require? I'm not seeing the 1.5.0-beta2 version of the plugin.
t
gradle version doesn't matter. but you have to set the compose compiler version. i currently have:
Copy code
compose.compiler.version = 1.5.0
compose.version = 1.5.0-beta02
👍 1
well, okay, the plugin has to match too:
Copy code
id("org.jetbrains.compose") version "1.5.0-beta02"
👍 1
d
@tylerwilson Thanks for help!
If you want to try Compose 1.5.0-beta02 you should do the following with your project: • Update Compose version to
1.5.0-beta02
, Kotlin version to
1.9.0
• Remove line with resources https://github.com/JetBrains/compose-multiplatform-ios-android-template/blob/c20faa099552dac7bcc242c72fe49e1f260177e9/shared/build.gradle.kts#L25 • And run command
./gradlew podInstall
once
👍 1