RelativeModal

constructor(    view: View,     relativeTo: View,     layout: ConstraintDslContext.(Bounds, Rectangle) -> Unit = { modal, _ -> modal.center eq parent.center })(source)

Parameters

view

to display as a Modal

relativeTo

another View (represented in the layout as the second parameter

layout

controls the modal's positioning within its parent