Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View

Spacer

A flexible space that expands along the main axis of its stack.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Spacer(modifier: Modifier = Modifier, minLength: Double? = null)

Overview

Spacer()

This is the Kotlin form of SwiftUI Spacer.init(minLength:): SwiftUI documentation. In Swift it reads:

init(minLength: CGFloat? = nil)

Topics

Creating a Spacer

fun Spacer(modifier: Modifier = Modifier, minLength: Double? = null)
SwiftUI Spacer.init(minLength:)