fun Modifier.background(ignoresSafeAreaEdges: Edge.Set = Edge.Set.all): ModifierOverview
Text("New", modifier = Modifier.padding().background(Color.blue.opacity(0.2), Capsule()))This is the Kotlin form of SwiftUI View.background(ignoresSafeAreaEdges:): SwiftUI documentation. In Swift it reads:
nonisolated func background(ignoresSafeAreaEdges edges: Edge.Set = .all) -> some ViewTopics
Overloads
fun Modifier.background(style: ShapeStyle, shape: InsettableShape, fillStyle: FillStyle = FillStyle()): Modifier
fun Modifier.background(shape: InsettableShape, fillStyle: FillStyle = FillStyle()): Modifier
fun Modifier.background(alignment: Alignment = Alignment.center, content: @Composable () -> Unit): Modifier
fun Modifier.background(style: ShapeStyle, ignoresSafeAreaEdges: Edge.Set = Edge.Set.all): Modifier
fun Modifier.background(ignoresSafeAreaEdges: Edge.Set = Edge.Set.all): Modifier
fun Modifier.background(style: ShapeStyle, shape: Shape, fillStyle: FillStyle = FillStyle()): Modifier
fun Modifier.background(shape: Shape, fillStyle: FillStyle = FillStyle()): Modifier