---
title: "performAsCurrentDrawingAppearance(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsappearance/performascurrentdrawingappearance(_:)"
---

# performAsCurrentDrawingAppearance(_:)

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

## Declaration

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

## Parameters

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

## Discussion

Discussion This method saves and restores the previous current appearance.

## See Also

### Getting and Setting the Current Appearance

- [currentDrawing()](appkit/nsappearance/currentdrawing().md)
- [current](appkit/nsappearance/current.md)
