Skip to content

[Mac/iOS] StackLayout fails to render content while applying Clip, and the layout is placed inside a Border with Background in .NET MAUI #33241

@VishalOmprasad

Description

@VishalOmprasad

Description

When applying a RoundRectangleGeometry clip to a custom StackLayout placed inside a Border, the layout fails to render correctly in Mac and iOS platforms. The issue occurs only when the parent Border has a Background set. Removing the Background property results in normal rendering.

Steps to Reproduce

  1. Download and open the attached .NET MAUI project in the public repository.
  2. Build and run the .NET MAUI app in iOS/Mac
  3. Observe the CustomView inside the Border.

Link to public reproduction project repository

https://github.com/VishalOmprasad/MAUI-Issues/tree/main/MAUIClipIssue

Version with bug

Unknown/Other

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-borderBorderarea-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/iosplatform/macosmacOS / Mac Catalysts/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions