Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

safeAreaBar(_:)

A view modifier that maps SwiftUI's safeAreaBar.

iOS 26.0+macOS 26.0+tvOS 26.0+watchOS 26.0+
fun Modifier.safeAreaBar(edge: HorizontalEdge, alignment: VerticalAlignment = VerticalAlignment.center, spacing: Double? = null, content: @Composable () -> Unit): Modifier

Overview

Modifier.safeAreaBar(edge = HorizontalEdge.…)

This is the Kotlin form of SwiftUI View.safeAreaBar(edge:alignment:spacing:content:): SwiftUI documentation. In Swift it reads:

nonisolated func safeAreaBar(edge: HorizontalEdge, alignment: VerticalAlignment = .center, spacing: CGFloat? = nil, @ContentBuilder content: () -> some View) -> some View

Topics

Overloads

fun Modifier.safeAreaBar(edge: VerticalEdge, alignment: HorizontalAlignment = HorizontalAlignment.center, spacing: Double? = null, content: @Composable () -> Unit): Modifier
SwiftUI View.safeAreaBar(edge:alignment:spacing:content:)
fun Modifier.safeAreaBar(edge: HorizontalEdge, alignment: VerticalAlignment = VerticalAlignment.center, spacing: Double? = null, content: @Composable () -> Unit): Modifier
SwiftUI View.safeAreaBar(edge:alignment:spacing:content:)