<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DiskImageKit",
  "identifier" : "/documentation/DiskImageKit/OpenConfiguration/init(url:mode:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "DiskImageKit"
    ],
    "preciseIdentifier" : "s:12DiskImageKit17OpenConfigurationV3url4modeAC10Foundation3URLV_AC4ModeOtcfc"
  },
  "title" : "init(url:mode:)"
}
-->

# init(url:mode:)

Creates a configuration for opening a disk image.

```
init(url: URL, mode: OpenConfiguration.Mode = .automatic)
```

## Parameters

`url`

The <doc://com.apple.documentation/documentation/Foundation/URL> of the disk image file to open.

`mode`

The mode in which to open the image (read-only or read-write).

---

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)