ios – error: Compilation failed: IrClassSymbolImpl is unbound. Signature: null


error: java.lang.IllegalStateException: IrClassSymbolImpl is unbound. Signature: null
at org.jetbrains.kotlin.ir.symbols.impl.IrBindableSymbolBase.getOwner(IrPrivateSymbolBase.kt)

When I try to use PopupPositionProvider I am getting build time error in ios app in Kotlin multiplatform

@Composable
private fun rememberPopupPos(
    side: PopupSide,
    onAnchorPos: (pos: IntOffset) -> Unit
) = object : PopupPositionProvider {
    override fun calculatePosition(
        anchorBounds: IntRect,
        windowSize: IntSize,
        layoutDirection: LayoutDirection,
        popupContentSize: IntSize
    ): IntOffset {
        val popupRect = placePopup(
            rect = popupContentSize.toIntRect(),
            anchor = anchorBounds.inflate(anchorBounds.minDimension / 10),
            side = side,
            dir = layoutDirection
        ).constrainOffset(windowSize.toIntRect())
        onAnchorPos(anchorBounds.center - popupRect.topLeft)
        return popupRect.topLeft
    }
}

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img