<!--
{
  "availability" : [
    "macOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSAppearance/performAsCurrentDrawingAppearance(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSAppearance(im)performAsCurrentDrawingAppearance:"
  },
  "title" : "performAsCurrentDrawingAppearance(_:)"
}
-->

# performAsCurrentDrawingAppearance(_:)

Sets the appearance to be the active drawing appearance and perform the specified block.

```
func performAsCurrentDrawingAppearance(_ block: () -> Void)
```

## Parameters

`block`

The block to invoke after setting the appearance to be the current drawing appearance.

## Discussion

This method saves and restores the previous current appearance.

---

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)