core-ktx / androidx.graphics / android.graphics.RectF / component1

component1

inline operator fun RectF.component1(): Float

Returns "left", the first component of the rectangle.

This method allows to use destructuring declarations when working with rectangles, for example:

val (left, top, right, bottom) = myRectangle