Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

inspector(_:)

A view modifier that maps SwiftUI's inspector.

iOS 17.0+macOS 14.0+tvOS: unavailable (no-op)watchOS: unavailable (no-op)
fun Modifier.inspector(isPresented: Boolean, onIsPresentedChange: (Boolean) -> Unit, content: @Composable () -> Unit): Modifier

Overview

Modifier.inspector(isPresented = true, onIsPresentedChange = { value -> })

This is the Kotlin form of SwiftUI View.inspector(isPresented:content:): SwiftUI documentation. In Swift it reads:

nonisolated func inspector<V>(isPresented: Binding<Bool>, @ContentBuilder content: () -> V) -> some View where V : View

Topics

Overloads

fun Modifier.inspector(isPresented: Boolean, onIsPresentedChange: (Boolean) -> Unit, content: @Composable () -> Unit): Modifier
SwiftUI View.inspector(isPresented:content:)