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

xor

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

Returns the union minus the intersection of two rectangles as a new region.