Skip to content

[iOS 26] CornerRadius property getting ignored/overriden on sdk 26 #16

@MitchBomcanhao

Description

@MitchBomcanhao

After updating the build process to use xcode 26, all instances of content button controls are now rendering incorrectly, with the CornerRadius property getting ignored and overriden by some default value, meaning that all uses of the property result in the same rounded corners being applied.
interestingly, when debugging, the page initially appears with the incorrect CornerRadius values, but if you manually edit the value it'll get applied under hot reload, so it is not like the property is entirely disconnected.

            <mcb:ContentButton BackgroundColor="Red" CornerRadius="0" HeightRequest="100">
                <Label Text="this should have square corners - CornerRadius=0" />
            </mcb:ContentButton>

            <mcb:ContentButton BackgroundColor="DarkOrange" HeightRequest="100">
                <Label Text="this should have square corners - CornerRadius is unset" />
            </mcb:ContentButton>

            <mcb:ContentButton BackgroundColor="LightPink" CornerRadius="25" HeightRequest="100">
                <Label Text="this should have slightly round corners - CornerRadius=25" />
            </mcb:ContentButton>

            <mcb:ContentButton BackgroundColor="LightBlue" CornerRadius="500" HeightRequest="100">
                <Label Text="this should have very round corners - CornerRadius=500" />
            </mcb:ContentButton>

the above xaml results in the following UI

Image

Thoughts, workarounds?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions