---
title: "showRelative(to:of:preferredEdge:)"
framework: contactsui
role: symbol
role_heading: Instance Method
path: "contactsui/cncontactpicker/showrelative(to:of:preferrededge:)"
---

# showRelative(to:of:preferredEdge:)

Shows the picker popover anchored to the specified view.

## Declaration

```swift
func showRelative(to positioningRect: NSRect, of positioningView: NSView, preferredEdge: NSRectEdge)
```

## Parameters

- `positioningRect`: The content size of the popover.
- `positioningView`: The view to which the popover should be positioned.
- `preferredEdge`: The edge to which the popover should be anchored to.

## See Also

### Related Documentation

- [NSPopover](appkit/nspopover.md)
