Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

containerShape(_:)

A view modifier that maps SwiftUI's containerShape.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.containerShape(shape: InsettableShape): Modifier

Overview

Modifier.containerShape(shape = InsettableShape.…)

This is the Kotlin form of SwiftUI View.containerShape(_:): SwiftUI documentation. In Swift it reads:

nonisolated func containerShape<T>(_ shape: T) -> some View where T : InsettableShape

Topics

Overloads

fun Modifier.containerShape(shape: InsettableShape): Modifier
SwiftUI View.containerShape(_:)
fun Modifier.containerShape(shape: RoundedRectangularShape): Modifier
SwiftUI View.containerShape(_:) · iOS 26.0+, macOS 26.0+, tvOS 26.0+, watchOS 26.0+