Skip to content

[BUG] Popup cannot be display with right angles or rounded angles #1452

@espritm

Description

@espritm

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

When displaying a CommunityToolkit.Maui.Views.Popup, I would like to be able to define the angles radius.

At this moment, it is follow the native default value, that is right angles on Android and rounded angles on iOS for instance.

On Android :
image

On iOS :
image

Expected Behavior

I would like to have a parameter setting the corner radius.

Or the best would be to draw ourself the view, maybe with a handler and cgrect for iOS for instance ? Any advice or help would be appreciated on this point if it is possible.

I have had a look at the code, and maybe here we could do something for iOS to draw the frame using a CGRect ?
https://github.com/CommunityToolkit/Maui/blob/3b44cc0350d57b196a967d2faa917d7cf23e27fa/src/CommunityToolkit.Maui.Core/Views/Popup/MauiPopup.macios.cs#L142C18-L142C18

OR if it is doing using a handler I would be happy to learn

Steps To Reproduce

  1. Get the sample project https://github.com/espritm/Maui.Toolkit.Popup
  2. Build and run, click the button, the popup is displayed
  3. In Controls folder, Popup class, I would like to have a parameter or some native code pour modifiy the angles.

Link to public reproduction project repository

https://github.com/espritm/Maui.Toolkit.Popup

Environment

- .NET MAUI CommunityToolkit:6.0.0
- OS:iOS, Android
- .NET MAUI:7.0

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions