---
title: ImportFromDevicesCommands
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/importfromdevicescommands
---

# ImportFromDevicesCommands

A built-in set of commands that enables importing content from nearby devices.

## Declaration

```swift
nonisolated struct ImportFromDevicesCommands
```

## Overview

Overview This set of commands adds items based on nearby devices and capabilities, like taking photos or scanning documents. Views can receive imported content from these menu items by using the importsItemProviders(_:onImport:) modifier. These commands are optional and you can explicitly request them by passing a value of this type to the commands(content:) modifier.

## Topics

### Creating the command group

- [init()](swiftui/importfromdevicescommands/init().md)

## Relationships

### Conforms To

- [Commands](swiftui/commands.md)

## See Also

### Getting built-in command groups

- [SidebarCommands](swiftui/sidebarcommands.md)
- [TextEditingCommands](swiftui/texteditingcommands.md)
- [TextFormattingCommands](swiftui/textformattingcommands.md)
- [ToolbarCommands](swiftui/toolbarcommands.md)
- [InspectorCommands](swiftui/inspectorcommands.md)
- [EmptyCommands](swiftui/emptycommands.md)
