Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.
This repository was archived by the owner on May 15, 2024. It is now read-only.

[Enhancement][Launcher][iOS] ability to set PresentationSourceBounds #1611

@dimonovdd

Description

@dimonovdd

Summary

Now we have this code:

var rect = DeviceInfo.Idiom == DeviceIdiom.Tablet
    ? new CGRect(new CGPoint(view.Bounds.Width / 2, view.Bounds.Height), CGRect.Empty.Size)
    : view.Bounds;
documentController.PresentOpenInMenu(rect, view, true);

It would be nice to get behavior as "Share"

if (request.PresentationSourceBounds != Rectangle.Empty || Platform.HasOSVersion(13, 0))
    activityController.PopoverPresentationController.SourceRect = request.PresentationSourceBounds.ToPlatformRectangle();

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions