Inspector
Adds an inspector to a view. It can appear as a trailing column in a regular horizontal size class or as a sheet in a compact horizontal size class.
SwiftUI Code
@State private var showInspector = true
var body: some View {
Text("Foo")
.inspector(isPresented: $showInspector) {
Text("Bar")
}
}