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

xor

inline infix fun RectF.xor(r: RectF): Region

Returns the union minus the intersection of two rectangles as a new region. The two rectangles are first converted to Rect using RectF.toRect.