<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSError/localizedRecoverySuggestion",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSError(py)localizedRecoverySuggestion"
  },
  "title" : "localizedRecoverySuggestion"
}
-->

# localizedRecoverySuggestion

A string containing the localized recovery suggestion for the error.

```
var localizedRecoverySuggestion: String? { get }
```

## Discussion

The object in the user info dictionary for the key [`NSLocalizedRecoverySuggestionErrorKey`](/documentation/Foundation/NSLocalizedRecoverySuggestionErrorKey). If the user info dictionary doesn’t contain a value for [`NSLocalizedRecoverySuggestionErrorKey`](/documentation/Foundation/NSLocalizedRecoverySuggestionErrorKey), this property is `nil`.

The returned string is suitable for displaying as the secondary message in an alert panel.

---

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)