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

component2

inline operator fun RectF.component2(): Float

Returns "top", the second component of the rectangle.

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

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