Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

zIndex(_:)

A view modifier that maps SwiftUI's zIndex.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.zIndex(value: Double): Modifier

Overview

Modifier.zIndex(value = 0.0)

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

nonisolated func zIndex(_ value: Double) -> some View

Topics

Overloads

fun Modifier.zIndex(value: Double): Modifier
SwiftUI View.zIndex(_:)