Open MKuckert opened 2 years ago
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
Description
There's already a property
ShareRequestBase.PresentationSourceBounds
to set aRectangle
to give the presentation controller used byUIActivityViewController
on iPads a hint where to anchor the displayed view. It's directly applied toactivityController.PopoverPresentationController.SourceRect
.I suggest a API change/addition to be able to pass a
UIBarButtonItem
instead to the presentation controller as there's no good way to find theSourceRect
for a bar button item.Was a feature request as https://github.com/xamarin/Essentials/issues/1939
Public API Changes
ShareRequestBase.PresentationOptions
IPresentationOptions
SourceBoundsPresentationOptions
UIBarButtonItemPresentationOptions
ShareRequestBase.PresentationSourceBounds
to be a projection of newShareRequestBase.PresentationOptions
property. One may deprecated this property completely.Intended Use-Case
There's no good way to find the
SourceRect
for a bar button item and though leverage the existing propertyShareRequestBase.PresentationSourceBounds
.