<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ImportFromDevicesCommands",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI25ImportFromDevicesCommandsV"
  },
  "title" : "ImportFromDevicesCommands"
}
-->

# ImportFromDevicesCommands

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

```
nonisolated struct ImportFromDevicesCommands
```

## 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:)`](/documentation/SwiftUI/View/importsItemProviders(_:onImport:)) modifier.

These commands are optional and you can explicitly request them by passing a
value of this type to the [`commands(content:)`](/documentation/SwiftUI/Scene/commands(content:)) modifier.

## Topics

### Creating the command group

[`init()`](/documentation/SwiftUI/ImportFromDevicesCommands/init())

Creates a new set of device import commands.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)