:wave: . Is there any equivalent to this in KMM? `...
# multiplatform
m
👋 . Is there any equivalent to this in KMM?
Copy code
fun dipToPixels(context: Context, dipValue: Float): Float {
    val metrics: DisplayMetrics = context.getResources().getDisplayMetrics()
    return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dipValue, metrics)
}