<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSStrokeColorAttributeName",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSStrokeColorAttributeName"
  },
  "title" : "NSStrokeColorAttributeName"
}
-->

# NSStrokeColorAttributeName

The color of the stroke.

```
extern NSAttributedStringKey NSStrokeColorAttributeName;
```

## Overview

The value of this parameter is a <doc://com.apple.documentation/documentation/UIKit/UIColor> object. If it is not defined (which is the case by default), it is assumed to be the same as the value of [`NSForegroundColorAttributeName`](/documentation/AppKit/NSForegroundColorAttributeName); otherwise, it describes the outline color. For more details, see [Drawing attributed strings that are both filled and stroked](https://developer.apple.com/library/archive/qa/qa1531/_index.html#//apple_ref/doc/uid/DTS40007490).

---

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)