<@U0B9PKJ7K> Is this now the correct way of declar...
# multiplatform
h
@h0tk3y Is this now the correct way of declaring ios preset dynamically?
Copy code
def iosTarget = project.findProperty("IOS_TARGET")
kotlin {
  targetFromPreset(presets[iosTarget], "ios")  {

  }
}
h
Yes it is for Groovy. For Gradle Kotlin DSL one would also want to tell the compiler more about the types to access the members of the target subtype, e.g. by casting the preset to
KotlinNativeTargetPreset
, or by casting the resulting target.