ForcedSize
Function
Common
expect fun DeviceConfigurationOverride.Companion.ForcedSize(
size: DpSize
): DeviceConfigurationOverride
A DeviceConfigurationOverride
that overrides the available size for the contained content.
This is only suitable for tests, since this will override LocalDensity
to ensure that the
size
is met (as opposed to Modifier.requiredSize
which will result in clipping).
Android
actual fun DeviceConfigurationOverride.Companion.ForcedSize(
size: DpSize
): DeviceConfigurationOverride