All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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()
        })
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy