Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

isDialog

Returns whether the node is a dialog.

isDialog

Source set: Common
fun isDialog(): SemanticsMatcher

Returns whether the node is a dialog.

This only checks if the node itself is a dialog, not if it is part of a dialog. Use hasAnyAncestorThat(isDialog()) for that.

Last updated: