toOffset
Source set: Common
inline fun IntOffset.toOffset() = Offset(x.toFloat(), y.toFloat())
Converts the IntOffset to an Offset.
Compose Multiplatform
Ship iOS, desktop, and web apps with Compose
RevenueCat
Add subscriptions to your apps in minutes
inline fun IntOffset.toOffset() = Offset(x.toFloat(), y.toFloat())
Last updated: