<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPopoverPresentationController/sourceItem",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPopoverPresentationController(py)sourceItem"
  },
  "title" : "sourceItem"
}
-->

# sourceItem

The item on which to anchor the popover.

```
var sourceItem: (any UIPopoverPresentationControllerSourceItem)? { get set }
```

## Discussion

Assign a value to this property to anchor the popover to the specified [`UIBarButtonItem`](/documentation/UIKit/UIBarButtonItem) or <doc://com.apple.documentation/documentation/AppKit/NSToolbarItem>. In iOS 18 and earlier, the popover’s arrow points to the specified item. In iOS 26 and later, the popover animates from and replaces the specified item until someone selects an action item or dismisses the popover.

Alternatively, you may specify the anchor location for the popover using the [`sourceView`](/documentation/UIKit/UIPopoverPresentationController/sourceView) and [`sourceRect`](/documentation/UIKit/UIPopoverPresentationController/sourceRect) properties.

The default value of this property is `nil`.

---

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)