Saturday, February 3, 2024
HomeiOS Developmentios - error: Compilation failed: IrClassSymbolImpl is unbound. Signature: null

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 attempt to use PopupPositionProvider I get construct time error in ios app in Kotlin multiplatform

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



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments