Unknown Gray box while after take a photo on iOS Release mode

Hi all,

When I take a photo with the camera, I see a large gray bar (on some phones it’s smaller, around 1/4 of the screen). (it happens only on Android) I attached the image as well



Interestingly, this only happens in Release mode, not in Debug.

At first, I thought it might be related to the SafeArea, but I still have the same issue.  I attached the code here.

We have the same problem in our Xamarin project.

I tested it on an iPhone 7 (iOS 15.8) on release mode.

I also have an iPhone 15, but can’t test it in Release mode right now, only in Debug, where it seems fine.

PS: On the iPhone 7, I can only test in Release mode, not Debug, so I can’t confirm 100% whether it works in Debug. Could this be related to the iOS version?


Attachment: screenshot1754912129293_c7ba2f4c.png

2 Replies

BO Boss August 11, 2025 11:37 AM UTC

it seem that I could not add the code. so it is here

```

<ui:BasePage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"

             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"

             xmlns:converters="clr-namespace:Tms.Converters"

             xmlns:imageEditor="clr-namespace:Syncfusion.Maui.ImageEditor;assembly=Syncfusion.Maui.ImageEditor"

             xmlns:ldt="clr-namespace:Tms.ViewModels.TakeAPhoto"

             xmlns:localization="clr-namespace:AppKernel.Localization;assembly=AppKernel"

             xmlns:ui="clr-namespace:AppKernel.UI;assembly=AppKernel"

             xmlns:ios="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific;assembly=Microsoft.Maui.Controls"

             x:Class="Tms.Views.TakeAPhoto.TakeAPhotoEditEdgesPage"

             x:DataType="ldt:TakeAPhotoEditEdgesPageViewModel"

             ios:Page.UseSafeArea="False"

             Title="{localization:Translate Text='Crop Photo',

                                            TranslationKey=502519}">


    <ui:BasePage.Resources>

        <converters:ImageDataToImageSourceConverter x:Key="ImageDataToImageSourceConverter" />

    </ui:BasePage.Resources>


    <Grid IgnoreSafeArea="True">

        <imageEditor:SfImageEditor x:Name="ImageEditor"

                                   BackgroundColor="{DynamicResource BackgroundColor}"

                                   Source="{Binding Image, Converter={StaticResource ImageDataToImageSourceConverter}}"

                                   VerticalOptions="Fill"

                                   HorizontalOptions="Fill" />

    </Grid>


</ui:BasePage>


```



TG Tamilarasan Gunasekaran Syncfusion Team August 12, 2025 04:03 PM UTC

Hi Boss,

Thank you for reaching out. Based on the information you've provided, we've reviewed your query and would like to investigate further to assist you effectively.

To proceed, could you please share the following details:

  • The implementation of the ImageDataToImageSourceConverter code you're currently using.

  • We’ve prepared a sample project that includes a framework Image control demonstrating the expected behavior. Kindly review the project and let us know if you're able to replicate the issue using this project.

Your input will be invaluable in helping us analyze the behavior and suggest appropriate optimizations. We appreciate your cooperation and look forward to your response.

Regards,
Tamilarasan G.


Attachment: CameraPicker_482e8ad9.zip

Loader.
Up arrow icon