How do you reposition a UIMenuController in a UICollectionViewCell

105 views Asked by At

I've added a custom item to a UIMenuController for each UICollectionViewCell and it shows up just fine and the action is firing. However, I would like it to be positioned, not in the middle of the cell, but in the center of the label (see screenshot). I've tried setting the targetRect but the position seems to be static. Is there a straightforward way to update it's position?

enter image description here

0

There are 0 answers