How to get the position of navigation bar item?

I have an array of navigation items. I am trying to add a popover near one of the navigation items.

navigationItem.rightBarButtonItems = [infoBarButtonItem, aboutBarButtonItem]

let barButtonView = navigationItem.rightBarButtonItems?.first

How can I get the CGPoints of barButtonView?

Terms of Service

Privacy Policy

Cookie Policy