<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextView/isAutomaticLinkDetectionEnabled",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTextView(py)automaticLinkDetectionEnabled"
  },
  "title" : "isAutomaticLinkDetectionEnabled"
}
-->

# isAutomaticLinkDetectionEnabled

A Boolean value that enables or disables automatic link detection.

```
var isAutomaticLinkDetectionEnabled: Bool { get set }
```

## Discussion

If <doc://com.apple.documentation/documentation/Swift/true>, automatic link detection is enabled; if <doc://com.apple.documentation/documentation/Swift/false>, it is disabled.

Automatic link detection causes strings representing URLs typed in the view to be automatically made into links to those URLs.

## See Also

  <doc://com.apple.documentation/documentation/Foundation/NSAttributedString/url(at:effectiveRange:)>



---

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)