Function

toIntSize

Convert a Size to an IntSize.

toIntSize

Source set: Common
public fun Size.toIntSize(): IntSize

Convert a Size to an IntSize. This rounds the width and height values down to the nearest integer.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: