init
TypeScriptstatic init(): InspectorCommandsSwift declarationnonisolated init()A new value describing the built-in inspector-related commands.
struct · iOS 17.0+ · SDK 27.1
nonisolated struct InspectorCommandsA built-in set of commands for manipulating inspectors. `InspectorCommands` include a command for toggling the presented state of the inspector with a keyboard shortcut of Control-Command-I. These commands are optional and can be explicitly requested by passing a value of this type to the ``Scene/commands(content:)`` modifier: @State var presented = true WindowGroup { MainView() .inspector(isPresented: $presented) { InspectorView() } } .commands { InspectorCommands() }
static init(): InspectorCommandsSwift declarationnonisolated init()A new value describing the built-in inspector-related commands.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
InspectorCommands.body
This protocol needs associated types that cannot yet cross the bridge.