iosMain.io.bidapp.compose.Banner.ios.kt Maven / Gradle / Ivy
package io.bidapp.compose
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.interop.UIKitView
import io.bidapp.core.PlatformView
import kotlinx.cinterop.ExperimentalForeignApi
import platform.UIKit.UIView
@OptIn(ExperimentalForeignApi::class)
@Composable
internal actual fun NativeView(adView: PlatformView, modifier: Modifier)
{
UIKitView(
modifier = modifier,
factory = {
adView.bannerView ?: UIView()
})
}