Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

id(_:)

A view modifier that maps SwiftUI's id.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.id(id: Any): Modifier

Overview

Modifier.id(id = value)

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

nonisolated func id<ID>(_ id: ID) -> some View where ID : Hashable

Topics

Overloads

fun Modifier.id(id: Any): Modifier
SwiftUI View.id(_:)