<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "QuickLook",
  "identifier" : "/documentation/QuickLook/PreviewSession/Event/didFail(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Quick Look"
    ],
    "preciseIdentifier" : "s:9QuickLook14PreviewSessionV5EventO7didFailyAEs5Error_pcAEmF"
  },
  "title" : "PreviewSession.Event.didFail(_:)"
}
-->

# PreviewSession.Event.didFail(_:)

The session failed to open with an error.

```
case didFail(any Error)
```

---

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)