fun Modifier.frame(): ModifierOverview
Pass a fixed width and height, or minimum and maximum sizes; maxWidth = Double.POSITIVE_INFINITY makes a view fill the available width.
Text("Title", modifier = Modifier.frame(maxWidth = Double.POSITIVE_INFINITY, alignment = Alignment.leading))This is the Kotlin form of SwiftUI View.frame(): SwiftUI documentation. In Swift it reads:
nonisolated func frame() -> some ViewTopics
Overloads
fun Modifier.frame(minWidth: Double? = null, idealWidth: Double? = null, maxWidth: Double? = null, minHeight: Double? = null, idealHeight: Double? = null, maxHeight: Double? = null, alignment: Alignment = Alignment.center): Modifier
fun Modifier.frame(): Modifier
fun Modifier.frame(width: Double? = null, height: Double? = null, alignment: Alignment = Alignment.center): Modifier