---
title: "draw(withExpansionFrame:in:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nscontrol/draw(withexpansionframe:in:)"
---

# draw(withExpansionFrame:in:)

Performs custom expansion tool tip drawing.

## Declaration

```swift
func draw(withExpansionFrame contentFrame: NSRect, in view: NSView)
```

## Parameters

- `contentFrame`: The frame in which to draw.
- `view`: The view in which to draw.

## Discussion

Discussion Note that the view may be different from the original view in which the text appeared.

## See Also

### Managing Expansion Tool Tips

- [allowsExpansionToolTips](appkit/nscontrol/allowsexpansiontooltips.md)
- [expansionFrame(withFrame:)](appkit/nscontrol/expansionframe(withframe:).md)
